From eb35502f068bdcba98293dabeec92040debc66c0 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Mon, 26 Feb 2024 19:22:38 -0500 Subject: [PATCH] test: don't use TS_REUSE_ALLOCATOR on Darwin systems For some reason, the linker seems to behave a bit differently with `-exported_symbols_list` on macOS vs other operating systems, so we'll disable this for now --- cli/build.rs | 3 --- cli/loader/src/lib.rs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/build.rs b/cli/build.rs index 67f9c21d..8c8df104 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -30,9 +30,6 @@ fn main() { target_os = "dragonfly", ))] println!("cargo:rustc-link-arg=-Wl,--dynamic-list=cli/dynamic-symbols.txt"); - - #[cfg(any(target_os = "macos", target_os = "ios"))] - println!("cargo:rustc-link-arg=-Wl,-exported_symbols_list,cli/dynamic-symbols-darwin.txt"); } fn web_playground_files_present() -> bool { diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs index f859f861..d3d83733 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -602,6 +602,7 @@ impl Loader { // Always use the same allocator in the CLI as any scanner, useful for debugging and // tracking memory leaks in tests. + #[cfg(not(any(target_os = "macos", target_os = "ios")))] command.arg("-DTS_REUSE_ALLOCATOR"); let output = command.output().with_context(|| {