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: http://src.chromium.org/svn/trunk/src/build@87840 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
piman@chromium.org 2011-06-03 20:05:46 +00:00
Родитель 196a9c676d
Коммит b698f6a705
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -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',
]
}]
]
}],
]