File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,6 @@ fn main() {
124
124
cmd. arg ( "--sysroot" ) . arg ( & sysroot) ;
125
125
}
126
126
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
-
133
127
// When we build Rust dylibs they're all intended for intermediate
134
128
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
135
129
// linking all deps statically into the dylib.
Original file line number Diff line number Diff line change @@ -802,7 +802,7 @@ impl<'a> Builder<'a> {
802
802
// Build proc macros both for the host and the target
803
803
if target != compiler. host && cmd != "check" {
804
804
cargo. arg ( "-Zdual-proc-macros" ) ;
805
- cargo . env ( "RUST_DUAL_PROC_MACROS" , "1 ") ;
805
+ rustflags . arg ( "-Zdual-proc-macros ") ;
806
806
}
807
807
} ,
808
808
}
You can’t perform that action at this time.
0 commit comments