Skip to content

Commit 4de8265

Browse files
committed
target: add -Zunstable-options when querying cfg
Since Rust 1.95,invoking rustc with `--target` requires `-Zunstable-options` when used with custom JSON targets. Without this flag, the command fails. Reference: rust-lang/rust@b4e645f rust-lang/rust@8563312 Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
1 parent 67b9d25 commit 4de8265

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/target.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl Target {
3232
let target = target.as_ref();
3333

3434
cmd.arg("--print").arg("cfg");
35+
cmd.arg("-Zunstable-options");
3536
if let Some(target) = target {
3637
cmd.arg("--target").arg(target);
3738
}

0 commit comments

Comments
 (0)