commit | 64c40f56d137544f3c14d1d5b78a41d0dce82a25 | [log] [tgz] |
---|---|---|
author | Shoaib Meenai <smeenai@fb.com> | Fri Dec 08 19:42:47 2017 +0000 |
committer | Shoaib Meenai <smeenai@fb.com> | Fri Dec 08 19:42:47 2017 +0000 |
tree | 3add97eab578ea668b163642baa12d443bcb2c9c | |
parent | 91bceea7d984ea0855e98fefd82cd1794de1ce73 [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320183 91177308-0d34-0410-b5e6-96231b3b80d8