diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-03 19:05:09 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-10-03 19:05:09 +0100 |
commit | 97b6334adcf53bf361decc200a2dfe4789b462f5 (patch) | |
tree | 579a3a030f93fcca56d1f0972fe26ec7fa2a648b /Jamroot.jam | |
parent | MemStream error handling and move support (diff) | |
download | libadhocutil-97b6334adcf53bf361decc200a2dfe4789b462f5.tar.bz2 libadhocutil-97b6334adcf53bf361decc200a2dfe4789b462f5.tar.xz libadhocutil-97b6334adcf53bf361decc200a2dfe4789b462f5.zip |
Modernize build
Diffstat (limited to 'Jamroot.jam')
-rw-r--r-- | Jamroot.jam | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index 1998ea7..46fe187 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -10,20 +10,22 @@ 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>coverage:<cxxflags>"--coverage" - <variant>coverage:<linkflags>"--coverage" + <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-* <toolset>tidy:<checkxx>misc-* <toolset>tidy:<checkxx>modernize-* + <toolset>tidy:<xcheckxx>modernize-use-trailing-return-type #<toolset>tidy:<checkxx>cppcoreguidelines-* <toolset>tidy:<checkxx>hicpp-* <toolset>tidy:<xcheckxx>hicpp-vararg |