Commit d4f478be authored by Wesierski, Lukasz's avatar Wesierski, Lukasz Committed by gbsbuild

Correct library name of common_clang

Change-Id: Ied827e1bff0e564922a6bc5ea92406d689778b89
parent 622e4af9
......@@ -131,11 +131,13 @@ endif()
get_property(_clang7zLocation TARGET CLANG_7Z PROPERTY IMPORTED_LOCATION_RELEASE)
if(NOT DEFINED COMMON_CLANG_LIBRARY_NAME)
if(EXISTS ${_clang7zLocation})
if(NOT DEFINED COMMON_CLANG_LIBRARY_NAME AND
EXISTS ${_clang7zLocation}
)
if(WIN32)
set(COMMON_CLANG_LIBRARY_NAME common_clang${_cpuSuffix})
else()
set(COMMON_CLANG_LIBRARY_NAME common_clang)
set(COMMON_CLANG_LIBRARY_NAME opencl_clang)
endif()
endif()
......
......@@ -3280,6 +3280,15 @@ if(TARGET LLVMCore)
# Link with static libraries if we are builing the sources:
set(IGC_BUILD__LLVM_LIBS_TO_LINK ${IGC_BUILD__LLVM_STATIC_LIBS_TO_LINK})
else()
#set that name of the main output file as a target name
if(NOT DEFINED COMMON_CLANG_LIBRARY_NAME
AND UNIX
)
set(COMMON_CLANG_LIBRARY_NAME opencl_clang)
endif()
message(STATUS "[IGC] LLVM targets are not defined. Searching for LLVM.")
if(NOT IGC_PREFERRED_LLVM_VERSION)
set(IGC_PREFERRED_LLVM_VERSION "7.0.0")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment