summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAnalysis
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-07-31 21:07:41 +0000
committerZachary Turner <zturner@google.com>2014-07-31 21:07:41 +0000
commit7c1bc2b8ae53b80593f2a0f3486d32d5f88e7851 (patch)
treec9f4f844d4d2663fe6f10956eb88e0d3fa96defa /llvm/lib/MC/MCAnalysis
parentea32c105a6959a503720e1c5a39e058cadfeef33 (diff)
downloadbcm5719-llvm-7c1bc2b8ae53b80593f2a0f3486d32d5f88e7851.tar.gz
bcm5719-llvm-7c1bc2b8ae53b80593f2a0f3486d32d5f88e7851.zip
Make CMake choose the target architecture according to the build.
Previously, CMake was invoking the test runner and not specifying what architecture to use when building test executables. The Makefiles for the test executables then had logic to choose x64 by default. This doesn't work on Windows because the test compiler would then try to link against the 64-bit MSVCRT and not find them since only the 32-bit MSVCRT was in the path. This patch addresses this by figuring out, at CMake time, whether or not you are building LLDB with a 64 or 32-bit toolchain. Then, it explicitly passes this value to the test runner, causing the test runner to build tests whose architecture matches that of LLDB itself. This can still be overridden by setting the CMake variable LLDB_TEST_EXECUTABLE_ARCH=(x64|x86) llvm-svn: 214443
Diffstat (limited to 'llvm/lib/MC/MCAnalysis')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud