gen_dev: generate and link zig builtins.

This commit is contained in:
Brendan Hansknecht 2021-02-14 18:15:00 -08:00
parent 6293fbfade
commit 7d24d51392
10 changed files with 322 additions and 95 deletions

View file

@ -282,6 +282,7 @@ fn link_linux(
.collect::<HashMap<String, String>>(),
)
.args(&[
"--gc-sections",
"--eh-frame-hdr",
"-arch",
arch_str(target),
@ -350,6 +351,7 @@ fn link_macos(
// Don't allow LD_ env vars to affect this
.env_clear()
.args(&[
"--gc-sections",
link_type_arg,
"-arch",
target.architecture.to_string().as_str(),