LLVM: Prevent linking error if linking against AMDGPU target.

As usual the AMDGPUUtils library is missing in the list of libraries.
This commit is contained in:
Kai Nacke 2016-05-20 21:34:22 +02:00
parent 4bc9610611
commit 41a9dcecea

View file

@ -68,6 +68,11 @@ if ((WIN32 AND NOT(MINGW OR CYGWIN)) OR NOT LLVM_CONFIG)
if(TARGET_AArch64 GREATER -1)
list(APPEND LLVM_FIND_COMPONENTS AArch64Utils)
endif()
# Similar to the work around above, but for AMDGPU
list(FIND LLVM_TARGETS_TO_BUILD "AMDGPU" TARGET_AMDGPU)
if(TARGET_AMDGPU GREATER -1)
list(APPEND LLVM_FIND_COMPONENTS AMDGPUUtils)
endif()
if(${LLVM_VERSION_STRING} MATCHES "^3\\.[0-6][\\.0-9A-Za-z]*")
# Versions below 3.7 do not support components debuginfo[dwarf|pdb]
# Only debuginfo is available