Skip to content

Commit 3de16c2

Browse files
Merge pull request #889 from IntelPython/improve-bld-bat
conda-recipe/bld.bat adjusted to work with different versions of clang used by DPC++
2 parents bacb140 + f529376 commit 3de16c2

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)