Don't build tsan/dd when COMPILER_RT_HAS_TSAN is false
llvm-svn: 306463
This commit is contained in:
parent
aea1c356e6
commit
fa0e536521
|
@ -21,6 +21,9 @@ function(compiler_rt_build_runtime runtime)
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue