summaryrefslogtreecommitdiff
path: root/Jamroot.jam
diff options
context:
space:
mode:
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 acc0484..ab6e837 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -8,8 +8,10 @@ project
: requirements
<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>"-W -Wall -Werror -Wextra -std=c++1y --coverage"
<variant>coverage:<linkflags>"--coverage"