Just disable gc-sections with surgical linker for rust hosts for now

This commit is contained in:
Brendan Hansknecht 2021-09-25 12:19:56 -07:00
parent 754130d25f
commit e6c137889a
6 changed files with 8 additions and 115 deletions

View file

@ -385,6 +385,7 @@ pub fn rebuild_host(
command.arg("--release");
}
let source_file = if shared_lib_path.is_some() {
command.env("RUSTFLAGS", "-C link-dead-code");
command.args(&["--bin", "host"]);
"src/main.rs"
} else {