summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"