Skip to content

Commit ae1ee6e

Browse files
committed
Pass -Werror when building LLVM
Enabling warning_into_errors() so deprecated uses of LLVM methods can be treated as errors.
1 parent 119574f commit ae1ee6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_llvm/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ fn main() {
167167
let cxxflags = output(&mut cmd);
168168
let mut cfg = cc::Build::new();
169169
cfg.warnings(false);
170+
cfg.warnings_into_errors(true);
170171
for flag in cxxflags.split_whitespace() {
171172
// Ignore flags like `-m64` when we're doing a cross build
172173
if is_crossed && flag.starts_with("-m") {

0 commit comments

Comments
 (0)