summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-09-23 18:03:37 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-09-24 23:13:07 +0100
commit84a0cc0f2c6f1e21733978ab759409d3a12f2b90 (patch)
treecd6509baff41e18d4424ff8e75108a24e6273d60
parentAdd -Wlogical-op (diff)
downloadnetfs-84a0cc0f2c6f1e21733978ab759409d3a12f2b90.tar.bz2
netfs-84a0cc0f2c6f1e21733978ab759409d3a12f2b90.tar.xz
netfs-84a0cc0f2c6f1e21733978ab759409d3a12f2b90.zip
Build config with boost-build options
-rw-r--r--Jamroot.jam10
1 files changed, 6 insertions, 4 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 9779158..fb9e151 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -11,13 +11,15 @@ project
: requirements
<define>ICE_CPP11_MAPPING
<define>_FILE_OFFSET_BITS=64
- <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=3"
<variant>release:<linkflags>"-flto=3"
- <variant>debug:<cxxflags>"-W -Wall -Werror -Wextra -Wlogical-op"
- <variant>coverage:<cxxflags>"--coverage"
- <variant>coverage:<linkflags>"--coverage"
+ <variant>debug:<cxxflags>-Wlogical-op
+ <variant>debug:<warnings>extra
+ <variant>debug:<warnings-as-errors>on
+ <variant>coverage:<coverage>on
<toolset>tidy:<checkxx>boost-*
<toolset>tidy:<checkxx>bugprone-*
<toolset>tidy:<checkxx>clang-*