aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2021-08-20 09:20:28 -0700
committerShoaib Meenai <smeenai@fb.com>2021-08-20 10:05:13 -0700
commitcd1b95014121442b79ee91f2002cc82c70b17639 (patch)
treecae9030b8286952d97287cb6abb7e82127edc39d /llvm/lib/Bitcode
parent331cfc53febc3f9b7e987070567a04a839bc2dc3 (diff)
downloadllvm-cd1b95014121442b79ee91f2002cc82c70b17639.zip
llvm-cd1b95014121442b79ee91f2002cc82c70b17639.tar.gz
llvm-cd1b95014121442b79ee91f2002cc82c70b17639.tar.bz2
[cmake] Fix native tooling when cross-compiling on Linux
At least as of CMake 3.20.3, the CMake platform file for Linux doesn't define the file type prefix and suffix variables, relying on them being implicitly empty when they're unset. If we're cross-compiling targeting Windows on a Linux machine, the values of these prefixes and suffixes populated by the Windows platform file will still be set after including the Linux platform file, so we'll incorrectly assume the ".exe" suffix for the host machine. Explicitly unset the variables before including the platform file, to prevent any previous values from leaking. Thanks @beanz for suggesting the fix. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D108473
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions