Commit 1d24f61f authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

win: Don't pass /FC to clang-cl.

It's currently a no-op in clang-cl, and if it weren't we wouldn't want it.

I'll try to completely remove msvc_use_absolute_paths in a follow-up.

Bug: none
Change-Id: Idedf8d7c294c27d647606d4e435dba9eb9d5aded
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721630
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarHans Wennborg <hans@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681471}
parent 0fa31928
...@@ -82,19 +82,19 @@ config("compiler") { ...@@ -82,19 +82,19 @@ config("compiler") {
] ]
if (msvc_use_absolute_paths) { if (msvc_use_absolute_paths) {
# Pass /FC flag to the compiler if needed. # MSVC used to require absolute paths in its diagnostics to be able to
cflags += [ "/FC" ] # click them. cl.exe only has "/FC" for this, which also affects __FILE__
# and other things, which is bad for build determinism.
# Print absolute paths in diagnostics. There is no precedent for doing this # clang-cl has a more targeted flag (and silently ignores /FC because it's
# on Linux/Mac (GCC doesn't support it), but MSVC does this with /FC and # bad for build determinism), so use the better flag there.
# Windows developers rely on it (crbug.com/636109) so only do this on
# Windows.
# TODO(thakis): This comment no longer really make sense after # TODO(thakis): This comment no longer really make sense after
# https://chromium-review.googlesource.com/c/chromium/src/+/558871/ # https://chromium-review.googlesource.com/c/chromium/src/+/558871/
# See if we can remove msvc_use_absolute_paths. See also discussion in # See if we can remove msvc_use_absolute_paths. See also discussion in
# https://reviews.llvm.org/D23816 # https://reviews.llvm.org/D23816
if (is_clang) { if (is_clang) {
cflags += [ "-fdiagnostics-absolute-paths" ] cflags += [ "-fdiagnostics-absolute-paths" ]
} else {
cflags += [ "/FC" ]
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment