[PATCH] D41622: [cmake] [libcxx] Fix path and flag problems when cross compiling.

Don Hinton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 29 15:48:46 PST 2017


hintonda added a comment.

In https://reviews.llvm.org/D41622#965280, @phosek wrote:

> Would it be possible to split the `CMAKE_REQUIRED_FLAGS` fix into a separate change since it's unrelated to the `CMAKE_FIND_ROOT_PATH` bit?


Sure, but both are needed to actually work.  This fixes cross compiling across systems, e.g., from Darwin to Linux.  Without both, configuration will fail.

Please note, cross system compiling also requires a pending patch to cmake:  https://gitlab.kitware.com/cmake/cmake/merge_requests/1620


Repository:
  rCXX libc++

https://reviews.llvm.org/D41622





More information about the cfe-commits mailing list