Revert back to using LLVM_TARGETS_TO_BUILD since
LLVM_EXPERIMENTAL_TARGETS_TO_BUILD logic is not implemented in clang
(or the installed LLVM CMake files). However, the target check is not
implemented either, so we can just push the experimental targets into
the regular variable.
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${clang_version}"
-DBUILD_SHARED_LIBS=ON
- # cheap hack: LLVM combines both anyway, and the only difference
- # is that the former list is explicitly verified at cmake time
- -DLLVM_TARGETS_TO_BUILD=""
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
+ -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
-DLLVM_BUILD_TESTS=$(usex test)
# these are not propagated reliably, so redefine them