Fuchsia is a new operating system which uses compiler-rt builtins, this change adds support for cross-compiling compiler-rt builtins for Fuchsia.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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 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.