diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-03 20:05:46 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-03 20:05:46 +0000 |
commit | f2fcf4df7b83cba250b64877116038eb0d285c0a (patch) | |
tree | 9b999de3a60b2c9b5c052c283e5c52f195afbf81 /build | |
parent | 45ac3481cda60308972f14f89deb02761f34f420 (diff) | |
download | chromium_src-f2fcf4df7b83cba250b64877116038eb0d285c0a.zip chromium_src-f2fcf4df7b83cba250b64877116038eb0d285c0a.tar.gz chromium_src-f2fcf4df7b83cba250b64877116038eb0d285c0a.tar.bz2 |
Only pass -Wl,--icf=safe to the target compiler, not the host one.
BUG=none
TEST=run gyp, check -Wl,--icf=safe is added to *.target.mk but not to *.host.mk
Review URL: http://codereview.chromium.org/7065051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi index 6664afd..6083fab 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1183,8 +1183,12 @@ # is then provided to us by gyp. (Currently only gold supports # an --icf flag.) ['LINKER_SUPPORTS_ICF==1 and release_valgrind_build==0', { - 'ldflags': [ - '-Wl,--icf=safe', + 'target_conditions': [ + ['_toolset=="target"', { + 'ldflags': [ + '-Wl,--icf=safe', + ] + }] ] }], ] |