diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-22 02:26:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-22 02:26:51 +0000 |
commit | 1b013d9d13c304bf66a4a6c16d272d25bc480b83 (patch) | |
tree | 8748fc5fde3f3f10b81d81c07be105dbe75b1339 /dev-util/intel-graphics-compiler/files | |
parent | d37f8725bb68034ef10d8882fb4411a49f2f666e (diff) |
gentoo auto-resync : 22:02:2023 - 02:26:50
Diffstat (limited to 'dev-util/intel-graphics-compiler/files')
-rw-r--r-- | dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch new file mode 100644 index 000000000000..d33f9eb2021f --- /dev/null +++ b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch @@ -0,0 +1,26 @@ +From 8068732355d18464a9fcb6846c225929349b450c Mon Sep 17 00:00:00 2001 +From: Jakub Czarnecki <jakub.czarnecki@intel.com> +Date: Thu, 26 Jan 2023 11:35:03 +0000 +Subject: [PATCH] Preinstalled SPIRV-Tools CMakeFile - target fix + +Added checking if SPIRV-Tools isn't already set as target before adding +it as a custom target to avoid errors. +--- + external/SPIRV-Tools/CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/external/SPIRV-Tools/CMakeLists.txt b/external/SPIRV-Tools/CMakeLists.txt +index 9afa5746c4d..3b768c1b772 100644 +--- a/external/SPIRV-Tools/CMakeLists.txt ++++ b/external/SPIRV-Tools/CMakeLists.txt +@@ -33,7 +33,9 @@ if(IGC_OPTION__SPIRV_TOOLS_MODE STREQUAL PREBUILDS_MODE_NAME) + set(IGC_BUILD__SPIRV-Tools_DIR "${SPIRV-Tools_ROOT_DIR}") + + set(INCLUDE_DIRS_LIST "${SPIRV-Tools_ROOT_DIR}/include" "${SPIRV-Headers_INCLUDE_DIR}") +- add_custom_target(SPIRV-Tools) ++ if(NOT TARGET SPIRV-Tools) ++ add_custom_target(SPIRV-Tools) ++ endif() + set_target_properties(SPIRV-Tools PROPERTIES INCLUDE_DIRECTORIES "${INCLUDE_DIRS_LIST}") + set(IGC_BUILD__PROJ__SPIRV-Tools SPIRV-Tools) + |