Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kongy committed Jan 10, 2023
1 parent eded23d commit e37cb63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llvm/runtimes/CMakeLists.txt
Expand Up @@ -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})
Expand Down

0 comments on commit e37cb63

Please sign in to comment.