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 915e535 commit 4ddb9edCopy full SHA for 4ddb9ed
compiler/rustc_llvm/build.rs
@@ -167,6 +167,11 @@ fn main() {
167
let cxxflags = output(&mut cmd);
168
let mut cfg = cc::Build::new();
169
cfg.warnings(false);
170
+
171
+ // Prevent critical warnings when we're compiling from rust-lang/rust CI
172
+ if std::env::var_os("CI").is_some() && !target.contains("msvc") {
173
+ cfg.warnings_into_errors(true);
174
+ }
175
for flag in cxxflags.split_whitespace() {
176
// Ignore flags like `-m64` when we're doing a cross build
177
if is_crossed && flag.starts_with("-m") {
0 commit comments