diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-11-14 19:27:46 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-01-11 03:41:48 +0100 |
commit | 0f569f5900ea4cf3af551c90f79b80fc78dce9bf (patch) | |
tree | 318d8a66986ce03cde4f5cc1f533fbca6b6a8bda /mkspecs/features/link_ltcg.prf | |
parent | d7795559a7b80d3ec0a1eb86d29deaca6074f4ed (diff) |
Clean up ltcg.prf with variables, including a new static mode
By using the special "ar" and "ranlib" tools, the symbol table is made
visible, so we don't need fat LTO binaries. Since we need to store the
new tool names, we may as well clean up ltcg.prf with variable names for
the fat mode too.
Change-Id: I7e53af0c74a3d069313f38500b72538af1d61128
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/link_ltcg.prf')
-rw-r--r-- | mkspecs/features/link_ltcg.prf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/features/link_ltcg.prf b/mkspecs/features/link_ltcg.prf index 537021f11b..734743ca13 100644 --- a/mkspecs/features/link_ltcg.prf +++ b/mkspecs/features/link_ltcg.prf @@ -1,4 +1,9 @@ gcc { + !clang:!intel_icc:greaterThan(QMAKE_HOST.cpu_count, 1) { + # Override LTO number of jobs + QMAKE_LFLAGS_LTCG ~= s/^-flto$/-flto=$$QMAKE_HOST.cpu_count/ + } + # When doing link-time code generation, we need to pass the compiler # flags during linking the stage too. This file is processed after # default_post.prf, so the QMAKE_CXXFLAGS already contains |