summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-19 21:40:06 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-19 21:40:06 +0000
commit67fd3713f81ffb32a846708f5fb18e5315371726 (patch)
tree6679809291de99c70cf69692a24d2e22dfd51f46
parentStandalone split and remove PCH (diff)
downloadlibjsonpp-67fd3713f81ffb32a846708f5fb18e5315371726.tar.bz2
libjsonpp-67fd3713f81ffb32a846708f5fb18e5315371726.tar.xz
libjsonpp-67fd3713f81ffb32a846708f5fb18e5315371726.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 4120691..acc0484 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -6,12 +6,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>"-W -Wall -Werror -Wextra -std=c++1y --coverage"
+ <variant>coverage:<linkflags>"--coverage"
;
build-project libjsonpp ;