This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Add support for Fuchsia
AbandonedPublic

Authored by phosek on Oct 30 2016, 4:43 PM.

Details

Reviewers
samsonov
Summary

Fuchsia is a new operating system which uses compiler-rt builtins, this change adds support for cross-compiling compiler-rt builtins for Fuchsia.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek updated this revision to Diff 76345.Oct 30 2016, 4:43 PM
phosek retitled this revision from to [compiler-rt] Add support for Fuchsia.
phosek updated this object.
phosek added a reviewer: samsonov.
phosek set the repository for this revision to rL LLVM.
phosek added a subscriber: llvm-commits.

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.

phosek abandoned this revision.Nov 14 2016, 4:55 PM

Abandoned in favor of D26652 which is a more universal solution.