summaryrefslogtreecommitdiffstats
path: root/src/buildtools/configure_target.pro
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-07 13:40:08 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-10 09:39:01 +0000
commit59ec1878a21d36991bce2de5cc32a8fcb7cdd920 (patch)
treeb305399c74beed1b33767f05964289ecf9fea0b7 /src/buildtools/configure_target.pro
parent2d235e2112b71e0011c3c31f8d496680091dac66 (diff)
Set gn use_gold based on qmake's use_gold_linker
Avoids adding --use-ld=gold on the link command line when gold linker has been deselected in Qt. Change-Id: I2d34cd3043aa24dca1f5f1604c97d8beccb70093 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/buildtools/configure_target.pro')
-rw-r--r--src/buildtools/configure_target.pro4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtools/configure_target.pro b/src/buildtools/configure_target.pro
index 54841bf51..6ec914dd5 100644
--- a/src/buildtools/configure_target.pro
+++ b/src/buildtools/configure_target.pro
@@ -7,6 +7,9 @@ GN_OS = $$gnOS()
clang: GN_CLANG = true
else: GN_CLANG = false
+use_gold_linker: GN_USE_GOLD=true
+else: GN_USE_GOLD=false
+
GN_CONTENTS = \
"gcc_toolchain(\"target\") {" \
" cc = \"$$which($$QMAKE_CC)\" " \
@@ -18,6 +21,7 @@ GN_CONTENTS = \
" current_os = \"$$GN_OS\" " \
" current_cpu = \"$$GN_CPU\" " \
" is_clang = $$GN_CLANG " \
+" use_gold = $$GN_USE_GOLD " \
" } " \
"}"