This is already supported on Linux but on Darwin it requires some extra flags.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
cmake/caches/Fuchsia.cmake | ||
---|---|---|
3 | This is only needed because the first stage compiler is building host builtins which on Darwin require extra architecture support. I don't know if there is a way to disable this behavior? One option I can think of would be to set LLVM_BUILTIN_TARGETS to "". Alternative would be to add a new CMake option, e.g. LLVM_INCLUDE_RUNTIMES. |
cmake/caches/Fuchsia.cmake | ||
---|---|---|
3 | Turned out this is not going to work since the runtimes build is apparently needed by the second stage compiler. |
cmake/caches/Fuchsia.cmake | ||
---|---|---|
3 | You can disable the embedded builtins by turning off COMPILER_RT_ENABLE_IOS. There are corresponding WATCHOS and TVOS options that you might want to hit off as well. They default off, but defaults do change sometimes. |
This is only needed because the first stage compiler is building host builtins which on Darwin require extra architecture support. I don't know if there is a way to disable this behavior? One option I can think of would be to set LLVM_BUILTIN_TARGETS to "". Alternative would be to add a new CMake option, e.g. LLVM_INCLUDE_RUNTIMES.