Skip to content

Commit

Permalink
Turns warnings into errors when testing for flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-airoldie committed Jul 8, 2024
1 parent 1613673 commit 2bb6e59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ mod cxx11 {
PathBuf::from(env::var("OUT_DIR").unwrap()).join("has_cxx11");

cc::Build::new()
.warnings(false)
.warnings(true)
.warnings_into_errors(true)
.std("c++11")
.get_compiler()
.to_command()
Expand Down

0 comments on commit 2bb6e59

Please sign in to comment.