We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c4f7de + 8271991 commit 6e13b10Copy full SHA for 6e13b10
compiler/rustc_llvm/build.rs
@@ -171,6 +171,11 @@ fn main() {
171
let cxxflags = output(&mut cmd);
172
let mut cfg = cc::Build::new();
173
cfg.warnings(false);
174
+
175
+ // Prevent critical warnings when we're compiling from rust-lang/rust CI
176
+ if std::env::var_os("CI").is_some() {
177
+ cfg.warnings_into_errors(true);
178
+ }
179
for flag in cxxflags.split_whitespace() {
180
// Ignore flags like `-m64` when we're doing a cross build
181
if is_crossed && flag.starts_with("-m") {
0 commit comments