diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index c98d12ce7992d..9c97fc1797eca 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -568,7 +568,7 @@ if(build_runtimes) if(NOT LLVM_RUNTIME_TARGETS) runtime_default_target( - DEPENDS ${builtins_dep} ${extra_deps} + DEPENDS ${extra_deps} CMAKE_ARGS ${extra_cmake_args} PREFIXES ${prefixes} EXTRA_ARGS ${extra_args}) @@ -576,7 +576,7 @@ if(build_runtimes) else() if("default" IN_LIST LLVM_RUNTIME_TARGETS) runtime_default_target( - DEPENDS ${builtins_dep} ${extra_deps} + DEPENDS ${extra_deps} CMAKE_ARGS ${extra_cmake_args} PREFIXES ${prefixes} EXTRA_ARGS ${extra_args}) @@ -613,18 +613,10 @@ if(build_runtimes) endif() foreach(name ${LLVM_RUNTIME_TARGETS}) - if(builtins_dep) - if (LLVM_BUILTIN_TARGETS) - set(builtins_dep_name "${builtins_dep}-${name}") - else() - set(builtins_dep_name ${builtins_dep}) - endif() - endif() - check_apple_target(${name} runtime) runtime_register_target(${name} - DEPENDS ${builtins_dep_name} ${extra_deps} + DEPENDS ${extra_deps} CMAKE_ARGS -DLLVM_DEFAULT_TARGET_TRIPLE=${name} ${extra_cmake_args} EXTRA_ARGS TARGET_TRIPLE ${name} ${extra_args}) endforeach()