Strip debug info from zig

This commit is contained in:
Brendan Hansknecht 2021-09-15 12:28:19 -07:00
parent da28b669bb
commit b1e02315d0
2 changed files with 4 additions and 0 deletions

View File

@ -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"]);

View File

@ -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),