diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-11 22:36:40 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-12 10:46:51 +0100 |
commit | 42358ead2cefaa16e2ab8e6193e933edec601356 (patch) | |
tree | 8e49476aa950b8148c018f33cf1c6ba5dee3f7e7 /Jamroot.jam | |
parent | Swap AdHoc::Buffer for CTF in db lib (diff) | |
download | slicer-42358ead2cefaa16e2ab8e6193e933edec601356.tar.bz2 slicer-42358ead2cefaa16e2ab8e6193e933edec601356.tar.xz slicer-42358ead2cefaa16e2ab8e6193e933edec601356.zip |
Modernize build
Diffstat (limited to 'Jamroot.jam')
-rw-r--r-- | Jamroot.jam | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index d1446d2..2f0a11b 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -10,13 +10,15 @@ 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" <toolset>gcc:<variant>release:<cxxflags>"-flto=2" <variant>release:<linkflags>"-flto" <toolset>gcc:<variant>release:<linkflags>"-flto=2" - <variant>debug:<cxxflags>"-W -Wall -Werror -Wextra" + <variant>debug:<warnings>extra + <variant>debug:<warnings-as-errors>on <variant>coverage:<cxxflags>"--coverage" <variant>coverage:<linkflags>"--coverage" <toolset>tidy:<checkxx>boost-* |