Prevent stable libtest from supporting -Zunstable-options
This commit is contained in:
parent
8a73f50d87
commit
ce6adccdad
1 changed files with 6 additions and 0 deletions
|
|
@ -339,6 +339,12 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
|
|||
""
|
||||
};
|
||||
|
||||
// `libtest` uses this to know whether or not to support
|
||||
// `-Zunstable-options`.
|
||||
if !builder.unstable_features() {
|
||||
cargo.env("CFG_DISABLE_UNSTABLE_FEATURES", "1");
|
||||
}
|
||||
|
||||
let mut features = String::new();
|
||||
|
||||
// Cranelift doesn't support `asm`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue