diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-12-08 19:42:47 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-12-08 19:42:47 +0000 |
commit | 038fd0056a0637bc6a7602753b6e580f61df31fd (patch) | |
tree | 0b0d7959499d2b20e81384da7f6570c9cd11b590 /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | |
parent | e8828d49d08b72f79b785e71245684c35ee8fbe7 (diff) | |
download | llvm-038fd0056a0637bc6a7602753b6e580f61df31fd.zip llvm-038fd0056a0637bc6a7602753b6e580f61df31fd.tar.gz llvm-038fd0056a0637bc6a7602753b6e580f61df31fd.tar.bz2 |
[cmake] Only pass CMAKE_SYSROOT if non-empty
In my build environment (cmake 3.6.1 and gcc 4.8.5 on CentOS 7), having
an empty CMAKE_SYSROOT in the cache results in --sysroot="" being passed
to all compile commands, and then the compiler errors out because of the
empty sysroot. Only set CMAKE_SYSROOT if non-empty to avoid this.
Differential Revision: https://reviews.llvm.org/D40934
llvm-svn: 320183
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
0 files changed, 0 insertions, 0 deletions