Skip to content

Commit 7a1a3ab

Browse files
committed
windows: ensure out directory exists
1 parent 8ad0a86 commit 7a1a3ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

project/scripts/native-integration/winTests.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
setlocal EnableDelayedExpansion
2+
setlocal
33

44
@rem paths are relative to the root project directory
55
set "_PREFIX=dist\win-x86_64\target\universal\stage"
@@ -11,6 +11,10 @@ set "_OUT_DIR=out"
1111
call "%_PREFIX%\bin\scalac.bat" "@project\scripts\options" "%_SOURCE%"
1212
if not %ERRORLEVEL%==0 endlocal& exit /b 1
1313

14+
@rem Create output directory (scalac requires it to exist)
15+
if exist "%_OUT_DIR%" rmdir /s /q "%_OUT_DIR%"
16+
mkdir "%_OUT_DIR%"
17+
1418
call "%_PREFIX%\bin\scalac.bat" -d "%_OUT_DIR%" "%_SOURCE%"
1519
if not %ERRORLEVEL%==0 endlocal& exit /b 1
1620

0 commit comments

Comments
 (0)