diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-27 00:20:29 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-27 00:20:29 +0100 |
commit | ab939dee7338a78f41e6b69dcd4bef0f12301ae8 (patch) | |
tree | b860ff5eb7124585cf1d00c799f83cc6dda2b54a /Jamroot.jam | |
parent | Add syslog log writer (diff) | |
download | icetray-ab939dee7338a78f41e6b69dcd4bef0f12301ae8.tar.bz2 icetray-ab939dee7338a78f41e6b69dcd4bef0f12301ae8.tar.xz icetray-ab939dee7338a78f41e6b69dcd4bef0f12301ae8.zip |
Modernize build
Diffstat (limited to 'Jamroot.jam')
-rw-r--r-- | Jamroot.jam | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index 8f0e94b..14cdfec 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -10,20 +10,23 @@ variant coverage : debug ; project : requirements <define>ICE_CPP11_MAPPING - <cxxflags>"-std=c++17 -fvisibility=hidden" + <cxxstd>17 + <visibility>hidden <linkflags>"-Wl,-z,defs,--warn-once,--gc-sections" <variant>release:<cxxflags>"-flto" <variant>release:<linkflags>"-flto" - <variant>debug:<cxxflags>"-W -Wall -Werror -Wextra" - <variant>coverage:<cxxflags>"--coverage" - <variant>coverage:<linkflags>"--coverage" + <variant>debug:<warnings>extra + <variant>debug:<warnings-as-errors>on + <variant>coverage:<coverage>on <variant>coverage:<define>COVERAGE <toolset>tidy:<checkxx>boost-* <toolset>tidy:<checkxx>bugprone-* <toolset>tidy:<checkxx>clang-* <toolset>tidy:<checkxx>misc-* <toolset>tidy:<checkxx>modernize-* + <toolset>tidy:<xcheckxx>modernize-use-trailing-return-type <toolset>tidy:<checkxx>hicpp-* + <toolset>tidy:<xcheckxx>hicpp-signed-bitwise <toolset>tidy:<checkxx>performance-* ; |