diff options
author | zmiao <miao.zhao@mapbox.com> | 2020-04-01 14:37:50 +0300 |
---|---|---|
committer | zmiao <miao.zhao@mapbox.com> | 2020-04-03 12:32:58 +0300 |
commit | 7e239b88341e48d5a158a1b8936104b989343bf6 (patch) | |
tree | 34b4d22e0ce93f78d964cf66ff878aada59e9c82 | |
parent | 93f2cd6704e0d9ca65d08e7d3efba84f5a5e16a4 (diff) | |
download | qtlocation-mapboxgl-7e239b88341e48d5a158a1b8936104b989343bf6.tar.gz |
[build] Enable all of the ubsans
[build] Check runtime error
[build] Update UBSAN_OPTION
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | circle.yml | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4357493cef..3f66c01d2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,8 @@ target_compile_options( $<$<STREQUAL:${MBGL_WITH_SANITIZER},undefined>:-fsanitize=implicit-conversion> $<$<STREQUAL:${MBGL_WITH_SANITIZER},undefined>:-fsanitize=undefined> $<$<STREQUAL:${MBGL_WITH_SANITIZER},undefined>:-fsanitize=unsigned-integer-overflow> + $<$<STREQUAL:${MBGL_WITH_SANITIZER},undefined>:-fsanitize=nullability> + $<$<STREQUAL:${MBGL_WITH_SANITIZER},undefined>:-fsanitize=float-divide-by-zero> $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<BOOL:${MBGL_WITH_RTTI}>>>:-fno-rtti> $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<PLATFORM_ID:Windows>>>:-Wall> $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<PLATFORM_ID:Windows>>>:-Wshadow> diff --git a/circle.yml b/circle.yml index 880383a386..197e9a2303 100644 --- a/circle.yml +++ b/circle.yml @@ -118,7 +118,6 @@ workflows: executor_name: ubuntu-disco target_is_linux: true config_params: '-G Ninja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=clang-8 -DCMAKE_CXX_COMPILER=clang++-8 -DMBGL_WITH_SANITIZER=undefined' - test_params: '|| true' style_tests: true - build-template: name: qt5-linux-gcc5-release @@ -242,7 +241,7 @@ executors: working_directory: /src environment: DISPLAY: :99 - UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=0 + UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=0:report_error_type=1 ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:halt_on_error=0 QT_INSTALL_DOCS: /usr/share/qt5/doc QT_VERSION: 5 |