From f529376f5b6d1326839ad67ec3bceb6c3367f0a3 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 17 Aug 2022 06:15:46 -0500 Subject: [PATCH] Adjust script setting hint dir variable to work with sycl bundles using different clang versions --- conda-recipe/bld.bat | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index c4071c86c6..f400b45712 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -5,7 +5,13 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%" "%PYTHON%" setup.py clean --all set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icx" -set "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\14.0.0" + +FOR %%V IN (14.0.0 15.0.0 16.0.0) DO @( + REM set DIR_HINT if directory exists + IF EXIST "%BUILD_PREFIX%\Library\lib\clang\%%V\" ( + SET "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\%%V" + ) +) set "PLATFORM_DIR=%PREFIX%\Library\share\cmake-3.22\Modules\Platform" set "FN=Windows-IntelLLVM.cmake"