Don't build tsan/dd when COMPILER_RT_HAS_TSAN is false

llvm-svn: 306463
This commit is contained in:
Francis Ricci 2017-06-27 21:10:46 +00:00
parent aea1c356e6
commit fa0e536521
1 changed files with 3 additions and 3 deletions

View File

@ -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)