diff --git a/compiler/build/src/link.rs b/compiler/build/src/link.rs index 42f8d40bf9..1d5a834c55 100644 --- a/compiler/build/src/link.rs +++ b/compiler/build/src/link.rs @@ -108,6 +108,7 @@ pub fn build_zig_host_native( // include libc "--library", "c", + "--strip", // cross-compile? "-target", target, @@ -194,6 +195,7 @@ pub fn build_zig_host_native( // include libc "--library", "c", + "--strip", ]); if matches!(opt_level, OptLevel::Optimize) { command.args(&["-O", "ReleaseSafe"]); @@ -244,6 +246,7 @@ pub fn build_zig_host_wasm32( // "wasm32-wasi", // "-femit-llvm-ir=/home/folkertdev/roc/roc/examples/benchmarks/platform/host.ll", "-fPIC", + "--strip", ]); if matches!(opt_level, OptLevel::Optimize) { command.args(&["-O", "ReleaseSafe"]); diff --git a/linker/src/lib.rs b/linker/src/lib.rs index f17e1f4888..3b1e71be90 100644 --- a/linker/src/lib.rs +++ b/linker/src/lib.rs @@ -198,6 +198,7 @@ fn generate_dynamic_lib( let text_section = out_object.section_id(write::StandardSection::Text); for sym in exposed_to_host { + // TODO properly generate this list. for name in &[ format!("roc__{}_1_exposed", sym), format!("roc__{}_1_Fx_caller", sym),