mirror of
https://github.com/boostorg/gil.git
synced 2026-02-27 17:12:10 +00:00
This should help to avoid failures on Travis CI (and possibly others): The job exceeded the maximum log length, and has been terminated.
71 lines
3.0 KiB
Plaintext
71 lines
3.0 KiB
Plaintext
# Boost.GIL (Generic Image Library)
|
|
#
|
|
# Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
# Copyright (c) 2018 Mateusz Loskot <mateusz@loskot.net>
|
|
#
|
|
# Use, modification and distribution is subject to the Boost Software License,
|
|
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
import os ;
|
|
|
|
# Travsi CI, AppVeyor
|
|
if ! [ os.environ CI ] && ! [ os.environ AGENT_JOBSTATUS ]
|
|
{
|
|
EXTRA_WARNINGS =
|
|
<toolset>msvc:<cxxflags>/W4
|
|
<toolset>gcc:<cxxflags>"-Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
|
|
<toolset>clang,<variant>debug:<cxxflags>"-Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
|
|
<toolset>clang,<variant>release:<cxxflags>"-Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
|
|
<toolset>darwin:<cxxflags>"-Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
|
|
;
|
|
}
|
|
|
|
project
|
|
:
|
|
requirements
|
|
# MSVC: Since VS2017, default is -std:c++14, so no explicit switch is required.
|
|
<toolset>msvc:<asynch-exceptions>on
|
|
<toolset>msvc:<cxxflags>/bigobj
|
|
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE <define>_CRT_SECURE_NO_WARNINGS <define>_CRT_NONSTDC_NO_DEPRECATE <define>NOMINMAX
|
|
<toolset>intel:<debug-symbols>off
|
|
<toolset>gcc:<cxxflags>"-std=c++11 -pedantic -fstrict-aliasing -Wextra"
|
|
<toolset>darwin:<cxxflags>"-std=c++11 -pedantic -fstrict-aliasing -Wextra"
|
|
# variant filter for clang is necessary to allow ubsan_* variants declare distinct set of <cxxflags>
|
|
<toolset>clang,<variant>debug:<cxxflags>"-std=c++11 -pedantic -fstrict-aliasing -Wextra"
|
|
<toolset>clang,<variant>release:<cxxflags>"-std=c++11 -pedantic -fstrict-aliasing -Wextra"
|
|
$(EXTRA_WARNINGS)
|
|
;
|
|
|
|
variant gil_ubsan_integer
|
|
: release
|
|
:
|
|
<cxxflags>"-std=c++11 -Wno-unused -fstrict-aliasing -fno-omit-frame-pointer -fsanitize=integer -fno-sanitize-recover=integer -fsanitize-blacklist=libs/gil/.ci/blacklist.supp"
|
|
<linkflags>"-fsanitize=integer"
|
|
<debug-symbols>on
|
|
<define>BOOST_USE_ASAN=1
|
|
;
|
|
|
|
variant gil_ubsan_nullability
|
|
: release
|
|
:
|
|
<cxxflags>"-std=c++11 -Wno-unused -fstrict-aliasing -fno-omit-frame-pointer -fsanitize=nullability -fno-sanitize-recover=nullability -fsanitize-blacklist=libs/gil/.ci/blacklist.supp"
|
|
<linkflags>"-fsanitize=nullability"
|
|
<debug-symbols>on
|
|
<define>BOOST_USE_ASAN=1
|
|
;
|
|
|
|
variant gil_ubsan_undefined
|
|
: release
|
|
:
|
|
<cxxflags>"-std=c++11 -Wno-unused -fstrict-aliasing -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-blacklist=libs/gil/.ci/blacklist.supp"
|
|
<linkflags>"-fsanitize=undefined"
|
|
<debug-symbols>on
|
|
<define>BOOST_USE_ASAN=1
|
|
;
|
|
|
|
build-project test ;
|
|
build-project numeric/test ;
|
|
build-project toolbox/test ;
|
|
build-project io/test ;
|