forked from OSchip/llvm-project
Revert "[runtimes] Create Tests.cmake if it does not exist"
This reverts commit d6623d7246
since
it broke the build on Mac.
This commit is contained in:
parent
c64f37f818
commit
f054d291f2
|
@ -220,11 +220,7 @@ function(runtime_default_target)
|
|||
endforeach()
|
||||
|
||||
if(LLVM_INCLUDE_TESTS)
|
||||
if (NOT EXISTS ${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
# This file will be later replaced by the runtimes subbuild.
|
||||
file(TOUCH ${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
endif()
|
||||
include(${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
include(${LLVM_BINARY_DIR}/runtimes/Tests.cmake OPTIONAL)
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
set_property(GLOBAL APPEND PROPERTY LLVM_LIT_TESTSUITES ${SUB_LIT_TESTSUITES})
|
||||
set_property(GLOBAL APPEND PROPERTY LLVM_LIT_PARAMS ${SUB_LIT_PARAMS})
|
||||
|
@ -306,11 +302,7 @@ function(runtime_register_target name target)
|
|||
endforeach()
|
||||
|
||||
if(LLVM_INCLUDE_TESTS)
|
||||
if (NOT EXISTS ${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
# This file will be later replaced by the runtimes subbuild.
|
||||
file(TOUCH ${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
endif()
|
||||
include(${LLVM_BINARY_DIR}/runtimes/Tests.cmake)
|
||||
include(${LLVM_BINARY_DIR}/runtimes/${name}/Tests.cmake OPTIONAL)
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${LLVM_BINARY_DIR}/runtimes/${name}/Tests.cmake)
|
||||
set_property(GLOBAL APPEND PROPERTY LLVM_LIT_TESTSUITES ${SUB_LIT_TESTSUITES})
|
||||
set_property(GLOBAL APPEND PROPERTY LLVM_LIT_PARAMS ${SUB_LIT_PARAMS})
|
||||
|
|
Loading…
Reference in New Issue