summaryrefslogtreecommitdiff
path: root/Jamroot.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-17 18:33:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-17 18:33:53 +0000
commite8d190c82c412828906af82fae5dcb611cf9b5f2 (patch)
treecf5dcecb9f697b46ee2b2b5551c2f84184befbeb /Jamroot.jam
parentBump Ice v3.7.2 (diff)
downloadslicer-e8d190c82c412828906af82fae5dcb611cf9b5f2.tar.bz2
slicer-e8d190c82c412828906af82fae5dcb611cf9b5f2.tar.xz
slicer-e8d190c82c412828906af82fae5dcb611cf9b5f2.zip
Parallel lto only with gcc
Diffstat (limited to 'Jamroot.jam')
-rw-r--r--Jamroot.jam6
1 files changed, 4 insertions, 2 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 04e56ae..19e8df2 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -10,8 +10,10 @@ project
<define>ICE_CPP11_MAPPING
<cxxflags>"-std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden"
<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>release:<cxxflags>"-flto=2"
- <variant>release:<linkflags>"-flto=2"
+ <variant>release:<cxxflags>"-flto"
+ <toolset>gcc:<variant>release:<cxxflags>"-flto=2"
+ <variant>release:<linkflags>"-flto"
+ <toolset>gcc:<variant>release:<linkflags>"-flto=2"
<variant>debug:<cxxflags>"-W -Wall -Werror -Wextra"
<variant>coverage:<cxxflags>"--coverage"
<variant>coverage:<linkflags>"--coverage"