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.
1 parent 919c409 commit 57491cbCopy full SHA for 57491cb
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() && !target.contains("msvc") {
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