Skip to content

Commit

Permalink
Don't pass wd4668 to clang-cl
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla authored and sylvestre committed Nov 14, 2023
1 parent 7358e8c commit 2f1bf9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/msvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,6 @@ where
.args(&parsed_args.preprocessor_args)
.args(&parsed_args.dependency_args)
.args(&parsed_args.common_args)
// Windows SDK generates C4668 during preprocessing, but compiles fine.
// Read for more info: https://github.com/mozilla/sccache/issues/1725
.arg("/wd4668")
.env_clear()
.envs(env_vars.iter().map(|(k, v)| (k, v)))
.current_dir(cwd);
Expand All @@ -902,6 +899,9 @@ where
cmd.arg("/sourceDependencies");
cmd.arg(depfile);
}
// Windows SDK generates C4668 during preprocessing, but compiles fine.
// Read for more info: https://github.com/mozilla/sccache/issues/1725
cmd.arg("/wd4668");
}

if rewrite_includes_only && is_clang {
Expand Down

0 comments on commit 2f1bf9b

Please sign in to comment.