Skip to content

Commit d364977

Browse files
CXX, dpcpp used on Windows too
A work-around added to bld.bat to be removed in 2021.4
1 parent bfe532b commit d364977

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

conda-recipe/bld.bat

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
call "%ONEAPI_ROOT%\compiler\latest\env\vars.bat"
2-
if errorlevel 1 (
3-
echo "oneAPI compiler activation failed"
4-
exit /b 1
5-
)
1+
2+
REM A workaround for activate-dpcpp.bat issue to be addressed in 2021.4
3+
set "LIB=%CONDA_PREFIX%\Library\lib;%CONDA_PREFIX%\compiler\lib;%LIB%"
64

75
"%PYTHON%" setup.py clean --all
8-
"%PYTHON%" setup.py install
6+
"%PYTHON%" setup.py install --sycl-compiler-prefix=%CONDA_PREFIX%\Library
97
if errorlevel 1 exit 1
108

119
rem Build wheel package

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:
1414
requirements:
1515
build:
1616
- {{ compiler('cxx') }}
17-
- {{ compiler('dpcpp') }} # [linux]
17+
- {{ compiler('dpcpp') }} # [not osx]
1818
host:
1919
- setuptools
2020
- cython

0 commit comments

Comments
 (0)