[PATCH] D30958: [CMake] Support building Fuchsia toolchain on Darwin

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 15:56:50 PDT 2017


beanz added inline comments.


================
Comment at: cmake/caches/Fuchsia.cmake:3
 
-set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
+if(NOT APPLE)
+  set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
----------------
phosek wrote:
> phosek wrote:
> > phosek wrote:
> > > 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`.
> > I've implemented that option in D31060.
> Turned out this is not going to work since the runtimes build is apparently needed by the second stage compiler.
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.


Repository:
  rL LLVM

https://reviews.llvm.org/D30958





More information about the llvm-commits mailing list