You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2018/10/03 22:35:20 UTC
[incubator-mxnet] branch master updated: [MXNET-953] Correct ASAN
cflags flag (#12659)
This is an automated email from the ASF dual-hosted git repository.
marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 811618a [MXNET-953] Correct ASAN cflags flag (#12659)
811618a is described below
commit 811618a76d4ef2c2a511d2e3797b77017b051e4f
Author: Kellen Sunderland <ke...@gmail.com>
AuthorDate: Wed Oct 3 15:35:00 2018 -0700
[MXNET-953] Correct ASAN cflags flag (#12659)
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ddf99e7..52a9596 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -302,7 +302,7 @@ else()
endif()
if(USE_ASAN)
- set(CMAKE_CFLAGS "${CMAKE_CFLAGS} -fno-omit-frame-pointer -fsanitize=address")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -fsanitize=address")
set(GTEST_LIBRARIES "${GTEST_LIBRARIES} -fsanitize=address")