[compiler-rt] 6c35991 - [TSAN][CMake] Add support to run lit on individual tests

Bruno Cardoso Lopes via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 12:33:09 PDT 2021


Author: Bruno Cardoso Lopes
Date: 2021-05-25T12:33:02-07:00
New Revision: 6c35991ca02413d94cc2c8f4a622851f261019f8

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

LOG: [TSAN][CMake] Add support to run lit on individual tests

Handy when testing specific files, already supported in other components.

Example:
cd build; ./bin/llvm-lit ../compiler-rt/test/tsan/ignore_free.cpp

Differential Revision: https://reviews.llvm.org/D103054

Added: 
    

Modified: 
    compiler-rt/test/tsan/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/tsan/CMakeLists.txt b/compiler-rt/test/tsan/CMakeLists.txt
index 67e20e5ecedb0..c8f8eba50dfc7 100644
--- a/compiler-rt/test/tsan/CMakeLists.txt
+++ b/compiler-rt/test/tsan/CMakeLists.txt
@@ -44,7 +44,10 @@ foreach(arch ${TSAN_TEST_ARCH})
 
   configure_lit_site_cfg(
     ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
-    ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
+    ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py
+    MAIN_CONFIG
+    ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
+    )
   list(APPEND TSAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
 endforeach()
 


        


More information about the llvm-commits mailing list