mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Strip debug info from zig
This commit is contained in:
parent
da28b669bb
commit
b1e02315d0
2 changed files with 4 additions and 0 deletions
|
@ -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"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue