[debuginfo-tests] e477a5f - [CMake] Add optional asan & safestack dependencies to DEBUGINFO_TEST_DEPS

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 17:56:44 PDT 2020


Author: Fangrui Song
Date: 2020-06-25T17:56:35-07:00
New Revision: e477a5f6c88de0ef7745694ec5f00bd69da23177

URL: https://github.com/llvm/llvm-project/commit/e477a5f6c88de0ef7745694ec5f00bd69da23177
DIFF: https://github.com/llvm/llvm-project/commit/e477a5f6c88de0ef7745694ec5f00bd69da23177.diff

LOG: [CMake] Add optional asan & safestack dependencies to DEBUGINFO_TEST_DEPS

Added: 
    

Modified: 
    debuginfo-tests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/debuginfo-tests/CMakeLists.txt b/debuginfo-tests/CMakeLists.txt
index dcd80bd4e4d9..429e7e346bc1 100644
--- a/debuginfo-tests/CMakeLists.txt
+++ b/debuginfo-tests/CMakeLists.txt
@@ -22,6 +22,15 @@ set(DEBUGINFO_TEST_DEPS
   not
   )
 
+# llgdb-tests/asan.c and other asan* files.
+if(TARGET asan)
+  list(APPEND DEBUGINFO_TEST_DEPS asan)
+endif()
+# llgdb-tests/safestack.c
+if(TARGET safestack)
+  list(APPEND DEBUGINFO_TEST_DEPS safestack)
+endif()
+
 # The Windows builder scripts pass -fuse-ld=lld.
 if (WIN32)
   set(DEBUGINFO_TEST_DEPS ${DEBUGINFO_TEST_DEPS} lld)


        


More information about the llvm-commits mailing list