Skip to content

Commit

Permalink
Disable C4668 during preprocessing for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei-Barnes authored and sylvestre committed May 30, 2023
1 parent a3f3c53 commit 5310b46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/msvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,9 +917,8 @@ where
.args(&parsed_args.dependency_args)
.args(&parsed_args.common_args)
// Windows SDK generates C4668 during preprocessing, but compiles fine.
// Making sure that 4668 is a level 4 warning prevents failing preprocessing on it.
// Read for more info: https://github.com/mozilla/sccache/issues/1725
.arg("/w44668")
.arg("/wd4668")
.env_clear()
.envs(env_vars.iter().map(|&(ref k, ref v)| (k, v)))
.current_dir(cwd);
Expand Down

0 comments on commit 5310b46

Please sign in to comment.