[PATCH] D78535: libclc: Pass system libraries to the linker after llvm libraries
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 20 22:13:43 PDT 2020
tstellar created this revision.
tstellar added a reviewer: jvesely.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
The llvm libraries depend on the symbols in the system libaries, so
the system libraries need to be added after.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78535
Files:
libclc/CMakeLists.txt
Index: libclc/CMakeLists.txt
===================================================================
--- libclc/CMakeLists.txt
+++ libclc/CMakeLists.txt
@@ -113,8 +113,8 @@
add_executable( prepare_builtins utils/prepare-builtins.cpp )
target_compile_options( prepare_builtins PRIVATE ${LLVM_CXX_FLAGS} )
target_compile_definitions( prepare_builtins PRIVATE ${LLVM_VERSION_DEFINE} )
-target_link_libraries( prepare_builtins PRIVATE ${LLVM_SYSTEM_LIBS} )
target_link_libraries( prepare_builtins PRIVATE ${LLVM_LIBS} )
+target_link_libraries( prepare_builtins PRIVATE ${LLVM_SYSTEM_LIBS} )
# Setup arch devices
set( r600--_devices cedar cypress barts cayman )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78535.258898.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/3f83714e/attachment.bin>
More information about the llvm-commits
mailing list