From 5dbc725f4d6b07d9d1214ae896fd3feeae8aa23b Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 30 Aug 2022 13:02:26 -0700 Subject: [PATCH] Skip linking rb_yjit_icache_invalidate on cargo test Co-authored-by: Kevin Newton --- yjit/src/backend/arm64/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs index e63b011391..69524be611 100644 --- a/yjit/src/backend/arm64/mod.rs +++ b/yjit/src/backend/arm64/mod.rs @@ -963,6 +963,7 @@ impl Assembler // Invalidate icache for newly written out region so we don't run // stale code. + #[cfg(not(test))] { let start = cb.get_ptr(start_write_pos).raw_ptr(); let write_ptr = cb.get_write_ptr().raw_ptr();