File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,12 @@ function(apply_patches repo_dir patches_dirs base_revision target_branch ret)
146
146
WORKING_DIRECTORY ${repo_dir}
147
147
OUTPUT_VARIABLE patching_log
148
148
ERROR_QUIET
149
+ RESULT_VARIABLE ret_apply_patch
149
150
)
150
151
message (STATUS "[OPENCL-CLANG] Not present - ${patching_log} " )
152
+ if (ret_apply_patch )
153
+ break ()
154
+ endif ()
151
155
endif ()
152
156
endforeach (patch )
153
157
else () # The target branch already exists
@@ -161,6 +165,8 @@ function(apply_patches repo_dir patches_dirs base_revision target_branch ret)
161
165
endif ()
162
166
if (NOT (ret_not_git_repo OR ret_check_out OR ret_apply_patch ))
163
167
set (${ret} True PARENT_SCOPE )
168
+ else ()
169
+ message (FATAL_ERROR "[OPENCL-CLANG] Failed to apply patch!" )
164
170
endif ()
165
171
endfunction ()
166
172
You can’t perform that action at this time.
0 commit comments