summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 12:38:20 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 12:38:20 +0000
commitaccc49e87a22cda9af9ebc26a1c690d7167b682a (patch)
tree758e2cbfdb1f4f97c0073eabc93610cae6aa7eb4
parentClang format all the code (diff)
downloadnetfs-accc49e87a22cda9af9ebc26a1c690d7167b682a.tar.bz2
netfs-accc49e87a22cda9af9ebc26a1c690d7167b682a.tar.xz
netfs-accc49e87a22cda9af9ebc26a1c690d7167b682a.zip
Modern LTO options
-rw-r--r--Jamroot.jam3
1 files changed, 1 insertions, 2 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 1dd6e98..cce8c6e 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -14,8 +14,7 @@ project
<cxxstd>17
<visibility>hidden
<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>release:<cxxflags>"-flto=3"
- <variant>release:<linkflags>"-flto=3"
+ <variant>release:<lto>on
<variant>debug<toolset>gcc:<cxxflags>-Wlogical-op
<variant>debug:<warnings>extra
<variant>debug:<warnings-as-errors>on