summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-21 20:18:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-21 20:18:55 +0000
commite38c88636be02b2d92f75ac46ab5559c5f3ffd6d (patch)
tree5900f6a0183d6bf739938663a988c372ccffe0b9
parentRevert 7a5ebcbe16e57e47113ea6e0f49cabc7f75c93b4 and related, external linkage... (diff)
downloadslicer-e38c88636be02b2d92f75ac46ab5559c5f3ffd6d.tar.bz2
slicer-e38c88636be02b2d92f75ac46ab5559c5f3ffd6d.tar.xz
slicer-e38c88636be02b2d92f75ac46ab5559c5f3ffd6d.zip
Add some nice cxxflags
-rw-r--r--Jamroot.jam13
1 files changed, 7 insertions, 6 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index b6fbd3d..a40d70e 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -7,12 +7,13 @@ variant coverage : debug ;
project
: requirements
- <variant>release:<cxxflags>"-std=c++1y -fvisibility=hidden"
- <variant>release:<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>debug:<cxxflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y -fvisibility=hidden"
- <variant>debug:<linkflags>"-Wl,-z,defs,--warn-once"
- <variant>coverage:<cxxflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage -fvisibility=hidden"
- <variant>coverage:<linkflags>"-Wl,-z,defs,--warn-once --coverage"
+ <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>debug:<cxxflags>"-W -Wall -Werror -Wextra"
+ <variant>coverage:<cxxflags>"--coverage"
+ <variant>coverage:<linkflags>"--coverage"
;
build-project slicer ;