mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
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
This commit is contained in:
parent
eded23dfda
commit
e37cb6390c
@ -421,7 +421,11 @@ if(runtimes)
|
|||||||
|
|
||||||
foreach(name ${LLVM_RUNTIME_TARGETS})
|
foreach(name ${LLVM_RUNTIME_TARGETS})
|
||||||
if(builtins_dep)
|
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()
|
endif()
|
||||||
runtime_register_target(${name} ${name}
|
runtime_register_target(${name} ${name}
|
||||||
DEPENDS ${builtins_dep_name})
|
DEPENDS ${builtins_dep_name})
|
||||||
|
Loading…
Reference in New Issue
Block a user