diff options
author | Don Hinton <hintonda@gmail.com> | 2018-01-22 19:26:38 +0000 |
---|---|---|
committer | Don Hinton <hintonda@gmail.com> | 2018-01-22 19:26:38 +0000 |
commit | 98bb420559f76d53d5daffd948e561e75dd29fe9 (patch) | |
tree | 9b8b6762335201a4970f0de48e68d4a4858b455d /llvm/tools/llvm-objcopy/Object.cpp | |
parent | 7c70d9d0be8a465974d45faa8e505acce7bb4075 (diff) | |
download | bcm5719-llvm-98bb420559f76d53d5daffd948e561e75dd29fe9.tar.gz bcm5719-llvm-98bb420559f76d53d5daffd948e561e75dd29fe9.zip |
[cmake] [libcxx] Fix find_path() problems when cross compiling.
When CMAKE_SYSROOT or CMAKE_FIND_ROOT_PATH is set, cmake
recommends setting CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
globally which means find_path() always prepends CMAKE_SYSROOT or
CMAKE_FIND_ROOT_PATH to all paths used in the search.
However, this find_path() invocation is looking for a path in the
libcxxabi project on the host system, not the target system,
which can be done by passing NO_CMAKE_FIND_ROOT_PATH.
Differential Revision: https://reviews.llvm.org/D41622
llvm-svn: 323143
Diffstat (limited to 'llvm/tools/llvm-objcopy/Object.cpp')
0 files changed, 0 insertions, 0 deletions