projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bf2d58
)
[CMake/ASan] Skip using libedit if ASan is enabled -- it leaks memory.
author
Chandler Carruth
<chandlerc@gmail.com>
Sat, 20 Aug 2016 07:05:13 +0000
(07:05 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Sat, 20 Aug 2016 07:05:13 +0000
(07:05 +0000)
Note that you'll have to clear this variable from your CMake cache for
it to take effect.
llvm-svn: 279362
llvm/cmake/config-ix.cmake
patch
|
blob
|
history
diff --git
a/llvm/cmake/config-ix.cmake
b/llvm/cmake/config-ix.cmake
index
d4c8c8d
..
e16aefa
100755
(executable)
--- a/
llvm/cmake/config-ix.cmake
+++ b/
llvm/cmake/config-ix.cmake
@@
-128,7
+128,8
@@
if( NOT PURE_WINDOWS AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
else()
set(HAVE_LIBZ 0)
endif()
- if (HAVE_HISTEDIT_H)
+ # Skip libedit if using ASan as it contains memory leaks.
+ if (HAVE_HISTEDIT_H AND NOT LLVM_USE_SANITIZER MATCHES ".*Address.*")
check_library_exists(edit el_init "" HAVE_LIBEDIT)
endif()
if(LLVM_ENABLE_TERMINFO)