summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-08-20 21:21:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-08-20 21:21:44 +0100
commit267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0 (patch)
tree9e1b9fa609e7ea3a53cb4d072889ddc1b02ce27e
parentFix parameter type (length) passed into format test (diff)
downloadlibadhocutil-267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0.tar.bz2
libadhocutil-267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0.tar.xz
libadhocutil-267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0.zip
Only GCC supports -flto=N
-rw-r--r--Jamroot.jam6
1 files changed, 4 insertions, 2 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 811c240..0ffaffb 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"