win: /PROFILE works fine with clang.

BUG=82385

Review-Url: https://codereview.chromium.org/2838673004
Cr-Original-Commit-Position: refs/heads/master@{#467126}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5aabe7f1511ffb880612b9ec8e43fe3f7950e14a
This commit is contained in:
thakis 2017-04-25 14:48:12 -07:00 коммит произвёл Commit bot
Родитель 3b1d8eb828
Коммит 4544a76339
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -86,13 +86,13 @@ config("compiler") {
# information is used by the Syzygy optimization tool when decomposing the
# release image. It is enabled for syzyasan builds and opportunistically for
# other builds where it is not prohibited (not supported when incrementally
# linking, using /debug:fastlink, or building with clang).
# linking, or using /debug:fastlink).
if (is_syzyasan) {
assert(!is_win_fastlink)
ldflags = [ "/PROFILE" ]
} else {
if (!is_debug && !is_component_build) {
if (is_win_fastlink || is_clang) {
if (is_win_fastlink) {
# /PROFILE implies the following linker flags. Therefore if we are
# skipping /PROFILE because it is incompatible with /DEBUG:FASTLINK
# we should explicitly add these flags in order to avoid unintended