This commit is contained in:
Hugh Bellamy 2018-09-18 11:40:09 +01:00
Родитель 69cd91df87
Коммит 850a20f2a2
3 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -28,7 +28,7 @@ script:
- export CFLAGS="-ggdb3 -O2"
- echo "travis_fold:start:build_libgdiplus"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./autogen.sh --prefix=/tmp/mono-dev --enable-warnaserror; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./autogen.sh --without-x11 --prefix=/tmp/mono-dev --enable-warnaserror CC=clang CFLAGS=-fsanitize=address,signed-integer-overflow,undefined LDFLAGS=-fsanitize=address,signed-integer-overflow,undefined CXX=clang++ CXXFLAGS=-fsanitize=address,signed-integer-overflow,undefined; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./autogen.sh --without-x11 --prefix=/tmp/mono-dev --enable-warnaserror --enable-asan; fi
- make -j4
- echo "travis_fold:end:build_libgdiplus"
- /bin/sh -c 'if make check; then true; else cat ./tests/test-suite.log; exit 1; fi'

Просмотреть файл

@ -57,7 +57,7 @@ Run the following command from the root of the repository:
To run the tests with Clang sanitizers, run the following command from the root of the repository:
./autogen.sh CC=clang CFLAGS=-fsanitize=address,signed-integer-overflow,undefined LDFLAGS=-fsanitize=address,signed-integer-overflow,undefined CXX=clang++ CXXFLAGS=-fsanitize=address,signed-integer-overflow,undefined
./autogen.sh --enable-asan
make check
### Installing libgdiplus

Просмотреть файл

@ -39,6 +39,13 @@ if test $warnaserror = "yes"; then
GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -Werror"
fi
AC_ARG_ENABLE(asan, AS_HELP_STRING([--enable-asan],[Enable address sanitizer.]),[asan=yes],[asan=no])
if test $asan = "yes"; then
GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -fsanitize=address,signed-integer-overflow,undefined -g -O1"
LDFLAGS="$LDFLAGS -fsanitize=address,signed-integer-overflow,undefined"
fi
CAIRO_LIBS="`pkg-config --libs cairo `"
CAIRO_CFLAGS="`pkg-config --cflags cairo `"
cairo_info="`pkg-config --modversion cairo ` (system)"