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(|| {