diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-17 18:07:10 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-17 18:07:10 +0000 |
commit | 99054e8642e8258388d3fa97b1f9c90c33b4fe11 (patch) | |
tree | dac0562d25b7c8a6b8f77b5aa4cfa8bc136b7449 | |
parent | Remove boost::filesystem in favour of std::filesystem (diff) | |
download | libjsonpp-99054e8642e8258388d3fa97b1f9c90c33b4fe11.tar.bz2 libjsonpp-99054e8642e8258388d3fa97b1f9c90c33b4fe11.tar.xz libjsonpp-99054e8642e8258388d3fa97b1f9c90c33b4fe11.zip |
Parallel lto only with gcc
-rw-r--r-- | Jamroot.jam | 6 |
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" |