diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 3c836ce261d0ea8d4c431b5a9941a59508df3b10..1955ca4aa99e5de6455be37e59be7fcd604a468e 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -124,12 +124,6 @@ fn main() { cmd.arg("--sysroot").arg(&sysroot); } - // Link crates to the proc macro crate for the target, but use a host proc macro crate - // to actually run the macros - if env::var_os("RUST_DUAL_PROC_MACROS").is_some() { - cmd.arg("-Zdual-proc-macros"); - } - // When we build Rust dylibs they're all intended for intermediate // usage, so make sure we pass the -Cprefer-dynamic flag instead of // linking all deps statically into the dylib. diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 5481e3d86e4d86ed66de8cd13d3d07e2f8df2af4..ee62b397678f5925ac6be671ed15affdb3a63b08 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -802,7 +802,7 @@ pub fn cargo( // Build proc macros both for the host and the target if target != compiler.host && cmd != "check" { cargo.arg("-Zdual-proc-macros"); - cargo.env("RUST_DUAL_PROC_MACROS", "1"); + rustflags.arg("-Zdual-proc-macros"); } }, }