mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Don't use --gc-sections on macos
This commit is contained in:
parent
d253571440
commit
beacdfda31
1 changed files with 5 additions and 1 deletions
|
@ -351,7 +351,11 @@ fn link_macos(
|
||||||
// Don't allow LD_ env vars to affect this
|
// Don't allow LD_ env vars to affect this
|
||||||
.env_clear()
|
.env_clear()
|
||||||
.args(&[
|
.args(&[
|
||||||
"--gc-sections",
|
// NOTE: we don't do --gc-sections on macOS because the default
|
||||||
|
// macOS linker doesn't support it, but it's a performance
|
||||||
|
// optimization, so if we ever switch to a different linker,
|
||||||
|
// we'd like to re-enable it on macOS!
|
||||||
|
// "--gc-sections",
|
||||||
link_type_arg,
|
link_type_arg,
|
||||||
"-arch",
|
"-arch",
|
||||||
target.architecture.to_string().as_str(),
|
target.architecture.to_string().as_str(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue