summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopUnrollAnalyzer.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-12-13 21:11:14 +0000
committerShoaib Meenai <smeenai@fb.com>2017-12-13 21:11:14 +0000
commit3957bf30cc87d9b2789ea5d85a1d435e8e549f1b (patch)
tree694fcf4751d6647fbe64b865c94a12847fa687dc /llvm/lib/Analysis/LoopUnrollAnalyzer.cpp
parentcad7fa857cf6d9949f25dcc5bc1f313f7ec2b0b6 (diff)
downloadbcm5719-llvm-3957bf30cc87d9b2789ea5d85a1d435e8e549f1b.tar.gz
bcm5719-llvm-3957bf30cc87d9b2789ea5d85a1d435e8e549f1b.zip
[cmake] Determine MSVC host triple correctly when cross-compiling
CMAKE_CL_64 will never be set when cross-compiling with clang-cl, since CMake relies on an actual VS environment in order to determine it. Instead, use the size of a void pointer to determine the bit width of the host compiler (and therefore the host triple), which works for both native and cross compilation. Note that, with the impending advent of Windows on AArch64, assuming that a 64-bit host == x86_64 isn't correct either, but that's something to be addressed in a follow-up. Differential Revision: https://reviews.llvm.org/D41155 llvm-svn: 320615
Diffstat (limited to 'llvm/lib/Analysis/LoopUnrollAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud