File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed
Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -145,29 +145,6 @@ if (NOT SPIRVToLLVMTranslator_FOUND)
145145 if (NOT PATCH_RESULT EQUAL 0)
146146 message (FATAL_ERROR "Failed to apply revert_3407.patch to SPIRV-LLVM-Translator" )
147147 endif ()
148-
149- execute_process (
150- COMMAND git apply --check ${CMAKE_CURRENT_LIST_DIR} /3462.patch
151- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
152- ERROR_QUIET
153- RESULT_VARIABLE PATCH_RESULT
154- )
155- if (PATCH_RESULT EQUAL 0)
156- execute_process (
157- COMMAND git apply ${CMAKE_CURRENT_LIST_DIR} /3462.patch
158- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
159- RESULT_VARIABLE PATCH_RESULT
160- )
161- else ()
162- execute_process ( # Check if the patch is already applied
163- COMMAND git apply --reverse --check ${CMAKE_CURRENT_LIST_DIR} /3462.patch
164- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
165- RESULT_VARIABLE PATCH_RESULT
166- )
167- endif ()
168- if (NOT PATCH_RESULT EQUAL 0)
169- message (FATAL_ERROR "Failed to apply 3462.patch to SPIRV-LLVM-Translator" )
170- endif ()
171148 endif ()
172149
173150 set (SPIRVToLLVMTranslator_INCLUDE_DIR "${SPIRVToLLVMTranslator_SOURCE_DIR} /include"
Original file line number Diff line number Diff line change 1- af594c0b45250fefa2093dfc31cb14d1eb6a32f2
1+ a726c62f8456c1eda0c1a689c24b95a7e7c95040
You can’t perform that action at this time.
0 commit comments