mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 10:25:01 +01:00
Run cargo build instead of cargo check for std
And use --release and respect rustflags. Just to make doubly-sure that even in the future, a build will be done instead of check.
This commit is contained in:
parent
4969eaeb36
commit
8e9ff1e9fd
1 changed files with 11 additions and 1 deletions
12
src/build.rs
12
src/build.rs
|
|
@ -314,8 +314,18 @@ async fn build_target(
|
|||
}
|
||||
BuildMode::Std => {
|
||||
cmd.arg(format!("+{toolchain}"))
|
||||
.args(["check", "-Zbuild-std"])
|
||||
.args(["build", "-Zbuild-std", "--release"])
|
||||
.args(["--target", target]);
|
||||
|
||||
let extra_flags = CUSTOM_CORE_FLAGS
|
||||
.iter()
|
||||
.find(|flags| flags.target == target);
|
||||
|
||||
if let Some(extra_flags) = extra_flags {
|
||||
let flags = extra_flags.flags.join(" ");
|
||||
cmd.env("RUSTFLAGS", &flags);
|
||||
rustflags = Some(flags);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue