[compiler-rt] r306463 - Don't build tsan/dd when COMPILER_RT_HAS_TSAN is false
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 27 14:10:46 PDT 2017
Author: fjricci
Date: Tue Jun 27 14:10:46 2017
New Revision: 306463
URL: http://llvm.org/viewvc/llvm-project?rev=306463&view=rev
Log:
Don't build tsan/dd when COMPILER_RT_HAS_TSAN is false
Modified:
compiler-rt/trunk/lib/CMakeLists.txt
Modified: compiler-rt/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/CMakeLists.txt?rev=306463&r1=306462&r2=306463&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Tue Jun 27 14:10:46 2017
@@ -21,6 +21,9 @@ function(compiler_rt_build_runtime runti
string(TOUPPER ${runtime} runtime_uppercase)
if(COMPILER_RT_HAS_${runtime_uppercase})
add_subdirectory(${runtime})
+ if(${runtime} STREQUAL tsan)
+ add_subdirectory(tsan/dd)
+ endif()
endif()
endfunction()
@@ -35,9 +38,6 @@ if(COMPILER_RT_BUILD_SANITIZERS)
foreach(sanitizer ${COMPILER_RT_SANITIZERS_TO_BUILD})
compiler_rt_build_runtime(${sanitizer})
- if(${sanitizer} STREQUAL tsan)
- add_subdirectory(tsan/dd)
- endif()
endforeach()
compiler_rt_build_runtime(profile)
More information about the llvm-commits
mailing list