Skip to content

Commit

Permalink
build: Remove most of uses of cxxflags from test/Jamfile (#550)
Browse files Browse the repository at this point in the history
Most uses of cxxflags are wrong.
Use b2 warnings instead, e.g. warnings=pedantic
  • Loading branch information
mloskot committed Jan 27, 2021
1 parent 434e78f commit 4e0f815
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/Jamfile
Expand Up @@ -16,32 +16,12 @@ import regex ;
import sequence ;
import testing ;

# Avoid warnings flood from CI builds
if ! [ os.environ CI ] && ! [ os.environ AGENT_JOBSTATUS ] && ! [ os.environ GITHUB_ACTIONS ]
{
DEVELOPMENT_EXTRA_WARNINGS =
<toolset>msvc:<cxxflags>"-W4"
<toolset>gcc:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
<toolset>clang,<variant>debug:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
<toolset>clang,<variant>release:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
<toolset>darwin:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
;
}
else
{
DEVELOPMENT_EXTRA_WARNINGS =
<toolset>msvc:<cxxflags>"-W1"
;
}

project
:
requirements
<include>.
# TODO: Enable concepts check for all, not just test/core
#<define>BOOST_GIL_USE_CONCEPT_CHECK=1
<toolset>msvc:<cxxflags>"-bigobj"
<toolset>msvc:<asynch-exceptions>on
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
<toolset>msvc:<define>_CRT_NONSTDC_NO_DEPRECATE
Expand Down

0 comments on commit 4e0f815

Please sign in to comment.