Skip to content

Commit fd54f7a

Browse files
PokhodenkoSAdiptorupd
authored andcommitted
Correct use ERRORLEVEL in conda scripts for Windows (#28)
* Correct use of ERRORLEVEL in cmd scripts. * Reset 0 after oneAPI env activateion in build and test scripts. * Revert "Correct use of ERRORLEVEL in cmd scripts." This reverts commit b42a7e1.
1 parent 7aa0512 commit fd54f7a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

conda-recipe/bld.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
call "%ONEAPI_ROOT%compiler\latest\env\vars.bat"
2+
IF ERRORLEVEL 1 exit 1
3+
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
4+
set ERRORLEVEL=
5+
26
set "CC=dpcpp-cl.exe"
37
set "CXX=dpcpp-cl.exe"
48

conda-recipe/run_test.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
call "%ONEAPI_ROOT%/compiler/latest/env/vars.bat"
2-
IF %ERRORLEVEL% NEQ 0 exit 1
2+
IF ERRORLEVEL 1 exit 1
3+
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
4+
set ERRORLEVEL=
35

46
@echo on
57

0 commit comments

Comments
 (0)