[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)
commit3eb01f99fb87b0d1f87ce998ae13c9fca5bd039d
treec5dc9e04c0717a49f9880cd9ec8087fe2c425d5d
parentc651e79c4a948940b117daf07b2c0087590cb6e0
[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

llvm-svn: 347937
llvm/cmake/modules/AddLLVM.cmake