This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Support for cross-compilation when build runtimes
ClosedPublic

Authored by phosek on Jan 2 2018, 12:15 PM.

Details

Summary

When cross-compiling, we cannot use the just built toolchain, instead
we need to use the host toolchain which we assume has a support for
targeting the selected target platform. We also need to pass the path
to the native version of llvm-config to external projects.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Jan 2 2018, 12:15 PM
beanz accepted this revision.Jan 3 2018, 10:32 AM

LGTM

This revision is now accepted and ready to land.Jan 3 2018, 10:32 AM
This revision was automatically updated to reflect the committed changes.