File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,18 @@ fn main() {
115
115
116
116
// The compiler builtins are pretty sensitive to symbols referenced in
117
117
// libcore and such, so we never compile them with debug assertions.
118
+ //
119
+ // FIXME(rust-lang/cargo#7253) we should be doing this in `builder.rs`
120
+ // with env vars instead of doing it here in this script.
118
121
if crate_name == Some ( "compiler_builtins" ) {
119
122
cmd. arg ( "-C" ) . arg ( "debug-assertions=no" ) ;
120
123
} else {
121
124
cmd. arg ( "-C" ) . arg ( format ! ( "debug-assertions={}" , debug_assertions) ) ;
122
125
}
123
126
} else {
127
+ // FIXME(rust-lang/cargo#5754) we shouldn't be using special env vars
128
+ // here, but rather Cargo should know what flags to pass rustc itself.
129
+
124
130
// Override linker if necessary.
125
131
if let Ok ( host_linker) = env:: var ( "RUSTC_HOST_LINKER" ) {
126
132
cmd. arg ( format ! ( "-Clinker={}" , host_linker) ) ;
You can’t perform that action at this time.
0 commit comments