File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,20 @@ if(NOT USE_PREBUILT_LLVM)
152
152
get_filename_component (LLVM_MONOREPO_DIR ${LLVM_SOURCE_DIR} DIRECTORY )
153
153
set (LLVM_PATCHES_DIRS ${CMAKE_CURRENT_SOURCE_DIR} /patches/llvm
154
154
${CMAKE_CURRENT_SOURCE_DIR} /patches/clang )
155
- apply_patches (${LLVM_MONOREPO_DIR}
156
- "${LLVM_PATCHES_DIRS} "
157
- ${LLVM_BASE_REVISION}
158
- ${TARGET_BRANCH} )
159
- apply_patches (${SPIRV_SOURCE_DIR}
160
- ${CMAKE_CURRENT_SOURCE_DIR} /patches/spirv
161
- ${SPIRV_BASE_REVISION}
162
- ${TARGET_BRANCH} )
155
+ option (APPLY_PATCHES "option to apply patches" ON )
156
+ if (APPLY_PATCHES )
157
+ message (STATUS "APPLY_PATCHES is enabled." )
158
+ apply_patches (${LLVM_MONOREPO_DIR}
159
+ "${LLVM_PATCHES_DIRS} "
160
+ ${LLVM_BASE_REVISION}
161
+ ${TARGET_BRANCH} )
162
+ apply_patches (${SPIRV_SOURCE_DIR}
163
+ ${CMAKE_CURRENT_SOURCE_DIR} /patches/spirv
164
+ ${SPIRV_BASE_REVISION}
165
+ ${TARGET_BRANCH} )
166
+ else ()
167
+ message (STATUS "APPLY_PATCHES is disabled, skip patch apply process." )
168
+ endif ()
163
169
endif (NOT USE_PREBUILT_LLVM )
164
170
165
171
#
You can’t perform that action at this time.
0 commit comments