diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -429,6 +429,15 @@ XCore ) +set(LLVM_ALL_EXPERIMENTAL_TARGETS + ARC + CSKY + DirectX + LoongArch + M68k + SPIRV +) + # List of targets with JIT support: set(LLVM_TARGETS_WITH_JIT X86 PowerPC AArch64 ARM Mips SystemZ) @@ -525,6 +534,11 @@ set( LLVM_TARGETS_TO_BUILD ${LLVM_ALL_TARGETS} ) endif() + +if(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD STREQUAL "all" ) + set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD ${LLVM_ALL_EXPERIMENTAL_TARGETS}) +endif() + set(LLVM_TARGETS_TO_BUILD ${LLVM_TARGETS_TO_BUILD} ${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD})