Skip to content

Commit c36849a

Browse files
committed
bootstrap: Move -Zdual-proc-macros to builder.rs
1 parent 812117a commit c36849a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ fn main() {
124124
cmd.arg("--sysroot").arg(&sysroot);
125125
}
126126

127-
// Link crates to the proc macro crate for the target, but use a host proc macro crate
128-
// to actually run the macros
129-
if env::var_os("RUST_DUAL_PROC_MACROS").is_some() {
130-
cmd.arg("-Zdual-proc-macros");
131-
}
132-
133127
// When we build Rust dylibs they're all intended for intermediate
134128
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
135129
// linking all deps statically into the dylib.

src/bootstrap/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ impl<'a> Builder<'a> {
802802
// Build proc macros both for the host and the target
803803
if target != compiler.host && cmd != "check" {
804804
cargo.arg("-Zdual-proc-macros");
805-
cargo.env("RUST_DUAL_PROC_MACROS", "1");
805+
rustflags.arg("-Zdual-proc-macros");
806806
}
807807
},
808808
}

0 commit comments

Comments
 (0)