[llvm-branch-commits] [libclc] 199494f - libclc: Pass system libraries to the linker after llvm libraries

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 29 18:04:44 PDT 2020


Author: Tom Stellard
Date: 2020-04-29T18:01:01-07:00
New Revision: 199494f512e96aa86592e849aff2bceb832629c0

URL: https://github.com/llvm/llvm-project/commit/199494f512e96aa86592e849aff2bceb832629c0
DIFF: https://github.com/llvm/llvm-project/commit/199494f512e96aa86592e849aff2bceb832629c0.diff

LOG: libclc: Pass system libraries to the linker after llvm libraries

Summary:
The llvm libraries depend on the symbols in the system libaries, so
the system libraries need to be added after.

Reviewers: jvesely

Reviewed By: jvesely

Subscribers: mgorny, llvm-commits

Tags: #llvm

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

(cherry picked from commit 174c41defc63db4ac7594e00a5044672ff624a31)

Added: 
    

Modified: 
    libclc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 440eab076509..ca65cf930562 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -113,8 +113,8 @@ link_directories( ${LLVM_LIBDIR} )
 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 )


        


More information about the llvm-branch-commits mailing list