@@ -75,76 +75,6 @@ if (NOT SPIRVToLLVMTranslator_FOUND)
7575 if (NOT PATCH_RESULT EQUAL 0)
7676 message (FATAL_ERROR "Failed to apply 3388.patch to SPIRV-LLVM-Translator" )
7777 endif ()
78-
79- # FIXME: Don't apply patch when LLVM commit update to 6cba572.
80- execute_process (
81- COMMAND git apply --check ${CMAKE_CURRENT_LIST_DIR} /revert_3385.patch
82- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
83- ERROR_QUIET
84- RESULT_VARIABLE PATCH_RESULT
85- )
86- if (PATCH_RESULT EQUAL 0)
87- execute_process (
88- COMMAND git apply ${CMAKE_CURRENT_LIST_DIR} /revert_3385.patch
89- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
90- RESULT_VARIABLE PATCH_RESULT
91- )
92- else ()
93- execute_process ( # Check if the patch is already applied
94- COMMAND git apply --reverse --check ${CMAKE_CURRENT_LIST_DIR} /revert_3385.patch
95- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
96- RESULT_VARIABLE PATCH_RESULT
97- )
98- endif ()
99- if (NOT PATCH_RESULT EQUAL 0)
100- message (FATAL_ERROR "Failed to apply revert_3385.patch to SPIRV-LLVM-Translator" )
101- endif ()
102-
103- # FIXME: Don't apply patch when LLVM commit update to 573ca36.
104- execute_process (
105- COMMAND git apply --check ${CMAKE_CURRENT_LIST_DIR} /revert_3406.patch
106- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
107- ERROR_QUIET
108- RESULT_VARIABLE PATCH_RESULT
109- )
110- if (PATCH_RESULT EQUAL 0)
111- execute_process (
112- COMMAND git apply ${CMAKE_CURRENT_LIST_DIR} /revert_3406.patch
113- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
114- RESULT_VARIABLE PATCH_RESULT
115- )
116- else ()
117- execute_process ( # Check if the patch is already applied
118- COMMAND git apply --reverse --check ${CMAKE_CURRENT_LIST_DIR} /revert_3406.patch
119- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
120- RESULT_VARIABLE PATCH_RESULT
121- )
122- endif ()
123- if (NOT PATCH_RESULT EQUAL 0)
124- message (FATAL_ERROR "Failed to apply revert_3406.patch to SPIRV-LLVM-Translator" )
125- endif ()
126- execute_process (
127- COMMAND git apply --check ${CMAKE_CURRENT_LIST_DIR} /revert_3407.patch
128- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
129- ERROR_QUIET
130- RESULT_VARIABLE PATCH_RESULT
131- )
132- if (PATCH_RESULT EQUAL 0)
133- execute_process (
134- COMMAND git apply ${CMAKE_CURRENT_LIST_DIR} /revert_3407.patch
135- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
136- RESULT_VARIABLE PATCH_RESULT
137- )
138- else ()
139- execute_process ( # Check if the patch is already applied
140- COMMAND git apply --reverse --check ${CMAKE_CURRENT_LIST_DIR} /revert_3407.patch
141- WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}
142- RESULT_VARIABLE PATCH_RESULT
143- )
144- endif ()
145- if (NOT PATCH_RESULT EQUAL 0)
146- message (FATAL_ERROR "Failed to apply revert_3407.patch to SPIRV-LLVM-Translator" )
147- endif ()
14878 endif ()
14979
15080 set (SPIRVToLLVMTranslator_INCLUDE_DIR "${SPIRVToLLVMTranslator_SOURCE_DIR} /include"
0 commit comments