File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ endif()
173
173
if (EXISTS ${CCLANG_SRC} )
174
174
set (IGC_CCLANG_HOME_DIR ${CCLANG_SRC} )
175
175
message (STATUS "Setup common clang source path from buildplan argument" )
176
- endif (NOT EXISTS ${IGC_CCLANG_HOME_DIR } )
176
+ endif (EXISTS ${CCLANG_SRC } )
177
177
endif (NOT IGC_CCLANG_HOME_DIR )
178
178
get_filename_component (IGC_CCLANG_HOME_DIR "${IGC_CCLANG_HOME_DIR} " ABSOLUTE )
179
179
# Set build directory
@@ -182,9 +182,13 @@ endif()
182
182
set (CCLANG_INSTALL_ARTIFACTS_DIR ${IGC_TARGET__TOOLS_CLANG_DIR} )
183
183
message (STATUS "Trigger common clang compilation from ${IGC_CCLANG_HOME_DIR} to ${CCLANG_INSTALL_ARTIFACTS_DIR} " )
184
184
185
- if (NOT OCL_HEADERS_DIR )
186
- get_filename_component (OCL_HEADERS_DIR "${IGC_BUILD__GFX_DEV_SRC_DIR} /third_party/opencl_headers" ABSOLUTE )
187
- endif ()
185
+ if (NOT CCLANG_OCL_HEADERS_DIR )
186
+ if (EXISTS "${IGC_BUILD__GFX_DEV_SRC_DIR} /third_party/opencl_headers" )
187
+ set (CCLANG_OCL_HEADERS_DIR "${IGC_BUILD__GFX_DEV_SRC_DIR} /third_party/opencl_headers" )
188
+ else ()
189
+ get_filename_component (CCLANG_OCL_HEADERS_DIR "${IGC_BUILD__GFX_DEV_SRC_DIR} /../opencl_headers" ABSOLUTE )
190
+ endif ()
191
+ endif (NOT CCLANG_OCL_HEADERS_DIR )
188
192
add_subdirectory (${IGC_CCLANG_HOME_DIR} ${IGC_CCLANG_BUILD_DIR} )
189
193
add_dependencies (GetClang "${CCLANG_LIB_NAME} " )
190
194
You can’t perform that action at this time.
0 commit comments