This is an automated email from the ASF dual-hosted git repository.
alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
The following commit(s) were added to refs/heads/master by this push:
new 5cfd81f [CMakeLists] get rid of warnings in ASAN builds
5cfd81f is described below
commit 5cfd81f7ed89b46dfdacc2389159fadbb59f0d8b
Author: Alexey Serbin <alexey@apache.org>
AuthorDate: Tue Feb 12 11:38:44 2019 -0800
[CMakeLists] get rid of warnings in ASAN builds
This patch updates the flags for ASAN builds to get rid of the
warnings like below:
clang-6.0: warning: argument '-fno-sanitize-recover' is deprecated, \
use '-fno-sanitize-recover=undefined,integer' or \
'-fno-sanitize-recover=all' instead [-Wdeprecated]
This is a follow-up to 678dbac6fb05d0370e40e6645d4b1ec530fa0180.
Change-Id: I0a5877ed1743387881ab1d31f42519a361b64ea7
Reviewed-on: http://gerrit.cloudera.org:8080/12459
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <adar@cloudera.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a1c16c..c9b0394 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -353,7 +353,7 @@ if (${KUDU_USE_UBSAN})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize=alignment")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/build-support/ubsan-blacklist.txt")
# Stop execution after UB or overflow is detected.
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize-recover")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize-recover=undefined,integer")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUNDEFINED_SANITIZER")
endif ()
|