[PATCH] D77162: libclc: Fix LLVM library linking on Windows
Jan Vesely via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 07:28:03 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe6bb1d69eccc: libclc: Fix LLVM library linking on Windows (authored by daniels, committed by jvesely).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77162/new/
https://reviews.llvm.org/D77162
Files:
libclc/CMakeLists.txt
Index: libclc/CMakeLists.txt
===================================================================
--- libclc/CMakeLists.txt
+++ libclc/CMakeLists.txt
@@ -58,9 +58,11 @@
execute_process( COMMAND ${LLVM_CONFIG} "--system-libs"
OUTPUT_VARIABLE LLVM_SYSTEM_LIBS
OUTPUT_STRIP_TRAILING_WHITESPACE )
+separate_arguments( LLVM_SYSTEM_LIBS )
execute_process( COMMAND ${LLVM_CONFIG} "--libs" "core" "bitreader" "bitwriter"
OUTPUT_VARIABLE LLVM_LIBS
OUTPUT_STRIP_TRAILING_WHITESPACE )
+separate_arguments( LLVM_LIBS )
execute_process( COMMAND ${LLVM_CONFIG} "--libdir"
OUTPUT_VARIABLE LLVM_LIBDIR
OUTPUT_STRIP_TRAILING_WHITESPACE )
@@ -76,7 +78,7 @@
OUTPUT_STRIP_TRAILING_WHITESPACE )
# These were not properly reported in early LLVM and we don't need them
-set( LLVM_CXX_FLAGS ${LLVM_CXX_FLAGS} -fno-rtti -fno-exceptions )
+list( APPEND LLVM_CXX_FLAGS -fno-rtti -fno-exceptions )
# Print LLVM variables
message( "LLVM system libs: ${LLVM_SYSTEM_LIBS}" )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77162.257320.patch
Type: text/x-patch
Size: 967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/114a8c95/attachment.bin>
More information about the llvm-commits
mailing list