only use gold-specific flags for the target linker
The host linker might not be gold if linux_use_gold_binary==0, eg where we have a cross toolchain with gold and we want to use that instead of third_party/gold/gold64. Review URL: https://chromiumcodereview.appspot.com/19541006 git-svn-id: http://src.chromium.org/svn/trunk/src/build@212823 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
fc98c3d432
Коммит
46235318af
18
common.gypi
18
common.gypi
|
@ -3378,12 +3378,18 @@
|
|||
],
|
||||
}],
|
||||
['linux_use_gold_flags==1', {
|
||||
'ldflags': [
|
||||
# Experimentation found that using four linking threads
|
||||
# saved ~20% of link time.
|
||||
# https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/281527606915bb36
|
||||
'-Wl,--threads',
|
||||
'-Wl,--thread-count=4',
|
||||
'target_conditions': [
|
||||
['_toolset=="target"', {
|
||||
'ldflags': [
|
||||
# Experimentation found that using four linking threads
|
||||
# saved ~20% of link time.
|
||||
# https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/281527606915bb36
|
||||
# Only apply this to the target linker, since the host
|
||||
# linker might not be gold, but isn't used much anyway.
|
||||
'-Wl,--threads',
|
||||
'-Wl,--thread-count=4',
|
||||
],
|
||||
}],
|
||||
],
|
||||
'conditions': [
|
||||
['release_valgrind_build==0', {
|
||||
|
|
Загрузка…
Ссылка в новой задаче