This is an archive of the discontinued LLVM Phabricator instance.

[docs] Fix cross-compile instructions
Needs ReviewPublic

Authored by loladiro on Sep 25 2017, 3:22 PM.

Details

Reviewers
rengolin
Summary

Setting the CMAKE_CROSSCOMPILING variable directly does not appear to work.
Instead, CMake is setting this variable based on the presence
or absence of the CMAKE_SYSTEM_NAME variable (in fact, if that variable is
not present, CMAKE_CROSSCOMPILING gets reset to false [1]). Lastly,
building an external tablegen is not necessary. LLVM is capable of
building a native tablegen as needed.

[1] https://github.com/Kitware/CMake/blob/eae3765b67b653d3f00afa44a60719a387262af8/Modules/CMakeDetermineSystem.cmake#L126

Event Timeline

loladiro created this revision.Sep 25 2017, 3:22 PM