[PATCH] D26131: [compiler-rt] Add support for Fuchsia

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 30 16:51:36 PDT 2016


phosek added a comment.

Any comments or suggestions are welcome. I know that cross-compilation is still not fully supported with CMake, but it's how we currently build compiler-rt for Fuchsia. We are invoking CMake as (here <https://fuchsia.googlesource.com/scripts/+/master/build-toolchain.sh#92> is a concrete version):

  cmake -DCMAKE_C_COMPILER=llvm-build/bin/clang -DLLVM_CONFIG_PATH=llvm-build/bin/llvm-config -DFUCHSIA=1 llvm-source/runtimes/compiler-rt/lib/builtins

This is very similar to how `llvm/runtime/CMakeLists.txt` builds compile-rt builtins, the only difference is the `FUCHSIA=1` flag to enforce the cross-compilation.


Repository:
  rL LLVM

https://reviews.llvm.org/D26131





More information about the llvm-commits mailing list