summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-11-15 17:47:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-11-17 13:30:15 +0000
commitd09ac18bd51a194d3109fbe66e3963abec1bbbca (patch)
tree413fbc393f1d43cadc7d0cc60f133ced11dcc393
parentFix cross library MP creation (diff)
downloadslicer-d09ac18bd51a194d3109fbe66e3963abec1bbbca.tar.bz2
slicer-d09ac18bd51a194d3109fbe66e3963abec1bbbca.tar.xz
slicer-d09ac18bd51a194d3109fbe66e3963abec1bbbca.zip
Modern lto build settings
-rw-r--r--Jamroot.jam5
1 files changed, 1 insertions, 4 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 292cefc..9155369 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -14,10 +14,7 @@ project
<cxxstd>17
<visibility>hidden
<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>release:<cxxflags>"-flto"
- <toolset>gcc:<variant>release:<cxxflags>"-flto=2"
- <variant>release:<linkflags>"-flto"
- <toolset>gcc:<variant>release:<linkflags>"-flto=2"
+ <variant>release:<lto>on
<variant>debug:<warnings>extra
<variant>debug:<warnings-as-errors>on
<variant>coverage:<coverage>on