diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-20 21:21:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-20 21:21:44 +0100 |
commit | 267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0 (patch) | |
tree | 9e1b9fa609e7ea3a53cb4d072889ddc1b02ce27e | |
parent | Fix parameter type (length) passed into format test (diff) | |
download | libadhocutil-267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0.tar.bz2 libadhocutil-267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0.tar.xz libadhocutil-267f4b9e5c3a78b8b97ad158cde4dd4d0dc19fe0.zip |
Only GCC supports -flto=N
-rw-r--r-- | Jamroot.jam | 6 |
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" |