mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Strip debug info from zig
This commit is contained in:
parent
da28b669bb
commit
b1e02315d0
@ -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"]);
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user