OSDN Git Service

[CMake] build correctly if build path contains whitespace
authorShoaib Meenai <smeenai@fb.com>
Fri, 30 Nov 2018 00:30:53 +0000 (00:30 +0000)
committerShoaib Meenai <smeenai@fb.com>
Fri, 30 Nov 2018 00:30:53 +0000 (00:30 +0000)
commitc574e6780f72fcc1f0314960f0438dfec65c1823
tree1565df0cdb1dc1318bae55ed6e114ebb3dd53076
parent28ade4e6f89e51bff03a34575d85a6a3ac701d87
[CMake] build correctly if build path contains whitespace

The add_llvm_symbol_exports function in AddLLVM.cmake creates command
line link flags with paths containing CMAKE_CURRENT_BINARY_DIR, but that
will break if CMAKE_CURRENT_BINARY_DIR contains whitespace. This patch
adds quotes to those paths.

Fixes PR39843.

Patch by John Garvin.

Differential Revision: https://reviews.llvm.org/D55081

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347937 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake