swift
f0594a41 - [embedded] Make embedded target triples conditional on LLVM support (#70218)

Commit
2 years ago
[embedded] Make embedded target triples conditional on LLVM support (#70218) LLVM might not be build with support for all architectures to save time. The changes in this commit check the value of LLVM_TARGETS_TO_BUILD provided by LLVMConfig.cmake to add or skip the different embedded targets if LLVM happens to not build with support for that target. While x86_64 and ARM/AArch64 are very common in `LLVM_TARGETS_TO_BUILD`, targets like RISCV are more specialized and might not be always enabled. This is not a problem for builds using the `build-script` because of the changes introduced in #70057, but it is still a problem for other builds that do not use `build-script`. This solution should work for any build.
Author
Parents
Loading