mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
use export-executable-symbols
This commit is contained in:
parent
5b952616a9
commit
4638984513
1 changed files with 6 additions and 1 deletions
|
@ -646,7 +646,12 @@ pub fn rebuild_host(
|
|||
}
|
||||
|
||||
let source_file = if shared_lib_path.is_some() {
|
||||
cargo_cmd.env("RUSTFLAGS", "-C link-dead-code");
|
||||
let rust_flags = if cfg!(windows) {
|
||||
"-Z export-executable-symbols"
|
||||
} else {
|
||||
"-C link-dead-code"
|
||||
};
|
||||
cargo_cmd.env("RUSTFLAGS", rust_flags);
|
||||
cargo_cmd.args(["--bin", "host"]);
|
||||
"src/main.rs"
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue