summaryrefslogtreecommitdiff
path: root/Jamroot.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 12:46:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 12:46:43 +0000
commite7eb024d9b73cb09a9a616a7ab967f08469e615b (patch)
treedb44c72fa77a23a97485b8b171706027d309fe10 /Jamroot.jam
parentClang format (diff)
downloadgentoobrowse-api-e7eb024d9b73cb09a9a616a7ab967f08469e615b.tar.bz2
gentoobrowse-api-e7eb024d9b73cb09a9a616a7ab967f08469e615b.tar.xz
gentoobrowse-api-e7eb024d9b73cb09a9a616a7ab967f08469e615b.zip
Modern compile options
Diffstat (limited to 'Jamroot.jam')
-rw-r--r--Jamroot.jam13
1 files changed, 7 insertions, 6 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 0a42616..a7b1d53 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -8,13 +8,14 @@ variant coverage : debug ;
project
: requirements
<define>ICE_CPP11_MAPPING
- <cxxflags>"-std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden"
+ <cxxstd>17
+ <visibility>hidden
<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>release:<cxxflags>"-flto=2"
- <variant>release:<linkflags>"-flto=2"
- <variant>debug:<cxxflags>"-W -Wall -Wextra -Wlogical-op -Werror -Wwrite-strings"
- <variant>coverage:<cxxflags>"--coverage"
- <variant>coverage:<linkflags>"--coverage"
+ <variant>release:<lto>on
+ <variant>debug:<warnings>extra
+ <variant>debug:<warnings-as-errors>on
+ <variant>coverage:<coverage>on
+ <toolset>tidy:<define>ICE_IGNORE_VERSION
;
build-project gentoobrowse-api ;