Build and run tests with sanitizers enabled.
[oweals/dinit.git] / mconfig
1 # Linux (GCC). Note with GCC 5.x/6.x you must use the old ABI, with GCC 7.x you must use
2 # the new ABI. See BUILD file for more information.
3 CXX=g++
4 CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++11 -Os -Wall -Wno-invalid-offsetof -fno-rtti
5 EXTRA_LIBS=
6 BUILD_SHUTDOWN=yes
7 SANITIZEOPTS=-fsanitize=address,undefined
8
9 # OpenBSD, tested with GCC 4.9.3 and gmake:
10 #CXX=clang++
11 #CXXOPTS=-std=gnu++11 -Os -Wall -fno-rtti
12 #EXTRA_LIBS=
13 #BUILD_SHUTDOWN=no
14 #SANITIZEOPTS=
15 # (shutdown command not available for OpenBSD yet).
16
17 # MacOS: use Linux settings, but don't build shutdown:
18 #BUILD_SHUTDOWN=no