aboutsummaryrefslogtreecommitdiff
path: root/llvm/runtimes
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2023-01-10 14:56:03 +0900
committerYi Kong <yikong@google.com>2023-01-10 14:56:03 +0900
commite37cb6390c892b88efc511bc616e34f88443a133 (patch)
treed9359c5fec70955abf22b1c01f691a1eee8e6afc /llvm/runtimes
parenteded23dfdaf050793b70351d5f42400016d57c15 (diff)
downloadllvm-e37cb6390c892b88efc511bc616e34f88443a133.zip
llvm-e37cb6390c892b88efc511bc616e34f88443a133.tar.gz
llvm-e37cb6390c892b88efc511bc616e34f88443a133.tar.bz2
Fix build when LLVM_BUILTIN_TARGETS is not set
If LLVM_BUILTIN_TARGETS is not set, no OS specific variants will be created, causing CMake build failure. Depend on the generic builtins target if LLVM_BUILTIN_TARGETS is not set. Differential Revision: https://reviews.llvm.org/D141273
Diffstat (limited to 'llvm/runtimes')
-rw-r--r--llvm/runtimes/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index e715090..694f346 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -421,7 +421,11 @@ if(runtimes)
foreach(name ${LLVM_RUNTIME_TARGETS})
if(builtins_dep)
- set(builtins_dep_name "${builtins_dep}-${name}")
+ if (LLVM_BUILTIN_TARGETS)
+ set(builtins_dep_name "${builtins_dep}-${name}")
+ else()
+ set(builtins_dep_name ${builtins_dep})
+ endif()
endif()
runtime_register_target(${name} ${name}
DEPENDS ${builtins_dep_name})