summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-11-16 04:46:48 +0000
committerPetr Hosek <phosek@chromium.org>2018-11-16 04:46:48 +0000
commitf8e27b3878af18a2ab7c0ea9a1ed54799361ea48 (patch)
treec3cfec443308d91c116e81eb2575a03de7c75ecc /llvm/lib/IR/ModuleSummaryIndex.cpp
parent5f5c773765b03aae78e324851d4f995580766362 (diff)
downloadbcm5719-llvm-f8e27b3878af18a2ab7c0ea9a1ed54799361ea48.tar.gz
bcm5719-llvm-f8e27b3878af18a2ab7c0ea9a1ed54799361ea48.zip
[CMake] Support cross-compiling with multi-stage builds
When using multi-stage builds, we would like support cross-compilation. Example is 2-stage build when the first stage is compiled for host while the second stage is compiled for the target. Normally, the second stage would be also used for compiling runtimes, but that's not possible when cross-compiling, so we use the first stage compiler instead. However, we still want to use the second stage paths. To do so, we set the -resource-dir of the first stage compiler to point to the resource directory of the second stage. We also need compiler tools that support the target architecture. These tools are not guaranteed to be present on the host, but in case of multi-stage build, we can build these tools in the first stage. Differential Revision: https://reviews.llvm.org/D54461 llvm-svn: 347025
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud