Skip to content

Commit f529376

Browse files
Adjust script setting hint dir variable to work with sycl bundles using different clang versions
1 parent bacb140 commit f529376

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

conda-recipe/bld.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
55

66
"%PYTHON%" setup.py clean --all
77
set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icx"
8-
set "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\14.0.0"
8+
9+
FOR %%V IN (14.0.0 15.0.0 16.0.0) DO @(
10+
REM set DIR_HINT if directory exists
11+
IF EXIST "%BUILD_PREFIX%\Library\lib\clang\%%V\" (
12+
SET "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\%%V"
13+
)
14+
)
915

1016
set "PLATFORM_DIR=%PREFIX%\Library\share\cmake-3.22\Modules\Platform"
1117
set "FN=Windows-IntelLLVM.cmake"

0 commit comments

Comments
 (0)