diff options
author | thakis <thakis@chromium.org> | 2016-03-18 14:34:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-18 21:37:23 +0000 |
commit | 28bfb18a1cf236f46860a8e0165ed36532ee5c49 (patch) | |
tree | 88e964b2e3070834096e1362289ca8f2472c3bba /build | |
parent | bfb2cebc0c8dacff0b93a37a822babe8c2bc0f5e (diff) | |
download | chromium_src-28bfb18a1cf236f46860a8e0165ed36532ee5c49.zip chromium_src-28bfb18a1cf236f46860a8e0165ed36532ee5c49.tar.gz chromium_src-28bfb18a1cf236f46860a8e0165ed36532ee5c49.tar.bz2 |
clang/win: Enable fastbuild=1 by default for now.
Linking currently takes forever when building with clang/win
without fastbuild=1 (see bug for details). Turn this on by
default until things are usable without it again.
BUG=589977
TBR=rnk
Review URL: https://codereview.chromium.org/1816683002
Cr-Commit-Position: refs/heads/master@{#382095}
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 7 | ||||
-rw-r--r-- | build/config/compiler/compiler.gni | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 400081b..0112b1a 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -2454,6 +2454,13 @@ ], }], + ['OS=="win" and clang==1', { + # TODO(thakis): Remove this again once building with clang/win and + # debug info doesn't make link.exe run for hours. + 'fastbuild': 1, + }], + + ['host_clang==1', { 'host_cc': '<(make_clang_dir)/bin/clang', 'host_cxx': '<(make_clang_dir)/bin/clang++', diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni index 134f96e..e2428c1 100644 --- a/build/config/compiler/compiler.gni +++ b/build/config/compiler/compiler.gni @@ -28,6 +28,10 @@ if (symbol_level == -1) { # With instrumentation enabled, debug info puts libchrome.so over 4gb, which # causes the linker to produce an invalid ELF. http://crbug.com/574476 symbol_level = 0 + } else if (is_win && is_clang) { + # TODO(thakis): Remove this again once building with clang/win and + # debug info doesn't make link.exe run for hours. + symbol_level = 1 } else if (!is_linux || is_debug || is_official_build || is_chromecast) { # Linux is slowed by having symbols as part of the target binary, whereas # Mac and Windows have them separate, so in Release Linux, default them off, |