mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
use the nightly compiler on windows to build platforms
This commit is contained in:
parent
2b6ddc990c
commit
5b952616a9
2 changed files with 14 additions and 1 deletions
|
@ -633,6 +633,12 @@ pub fn rebuild_host(
|
|||
);
|
||||
|
||||
let mut cargo_cmd = cargo();
|
||||
|
||||
if cfg!(windows) {
|
||||
// on windows, we need the `+nightly` toolchain so we can use `-Z export-executable-symbols`
|
||||
cargo_cmd.arg("+nightly");
|
||||
}
|
||||
|
||||
cargo_cmd.arg("build").current_dir(cargo_dir);
|
||||
// Rust doesn't expose size without editing the cargo.toml. Instead just use release.
|
||||
if matches!(opt_level, OptLevel::Optimize | OptLevel::Size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue