mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 17:40:40 -04:00
21 lines
750 B
Text
21 lines
750 B
Text
https://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/tree/dynamic-layers/clang-layer/recipes-opencl/igc/files/link-to-LLVMGenXIntrinsics.patch
|
|
|
|
--- IGC/VectorCompiler/CMakeLists.txt.orig 2021-07-18 10:00:28 UTC
|
|
+++ IGC/VectorCompiler/CMakeLists.txt
|
|
@@ -44,6 +44,8 @@ endif()
|
|
|
|
# --- VC Intrinsics ---
|
|
|
|
+find_package(LLVMGenXIntrinsics)
|
|
+if(NOT LLVMGenXIntrinsics_FOUND)
|
|
if(DEFINED VC_INTRINSICS_SRC)
|
|
set(INTRSRC "${VC_INTRINSICS_SRC}/GenXIntrinsics")
|
|
endif()
|
|
@@ -58,6 +61,7 @@ set(BUILD_EXTERNAL YES)
|
|
# We are using prebuilt SPIRV and building intrinsics.
|
|
set(INTRBUILD "${CMAKE_CURRENT_BINARY_DIR}/intrbuild")
|
|
add_subdirectory(${INTRSRC} ${INTRBUILD} EXCLUDE_FROM_ALL)
|
|
+endif(NOT LLVMGenXIntrinsics_FOUND)
|
|
|
|
include(cmake/spirv.cmake)
|
|
|