dist: bionic
language: cpp
compiler:
- - gcc
+# - gcc
- clang
env:
- - BUILD=Release SASL=false
- - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22
- - BUILD=Debug SASL=false PREFIX=/opt PORT=11212 MC_VERSION=1.6.6
+# - BUILD=Release SASL=false
+# - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22
+# - BUILD=Debug SASL=false PREFIX=/opt PORT=11212 MC_VERSION=1.6.6
- BUILD=Debug SASL=true PREFIX=/opt PORT=11212 SANITIZERS="address;undefined"
#before_install:
add_compile_definitions(HAVE_ASAN)
add_compile_options(-fsanitize=address)
if(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -v -fsanitize=address")
endif()
link_libraries(asan)
check_flag(-fsanitize-recover=address IGNORE)
add_compile_definitions(HAVE_UBSAN)
add_compile_options(-fsanitize=undefined)
if(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -v -fsanitize=undefined")
endif()
link_libraries(ubsan)
check_flag(-fsanitize-recover=undefined IGNORE)