Skip to content

Commit d1726e7

Browse files
committed
* fix Windows build -> fix libUV path4
1 parent 0d29113 commit d1726e7

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,17 @@ if not exist "%DEPS_DIR%" (
2020
)
2121
if %errorlevel% neq 0 exit /b 3
2222

23-
cmd /c buildconf.bat --force
24-
if %errorlevel% neq 0 exit /b 3
25-
26-
rem Copy LibUV from vcpkg to deps directory for async extension BEFORE configure
27-
echo Debug: DEPS_DIR=%DEPS_DIR%
28-
echo Debug: Checking what's in vcpkg...
29-
dir "C:\vcpkg\installed\x64-windows\include\"
30-
dir "C:\vcpkg\installed\x64-windows\lib\"
31-
23+
rem Copy LibUV from vcpkg to deps directory
24+
echo Copying LibUV to %DEPS_DIR%
3225
if not exist "%DEPS_DIR%\include\libuv" mkdir "%DEPS_DIR%\include\libuv"
3326
if not exist "%DEPS_DIR%\lib" mkdir "%DEPS_DIR%\lib"
27+
copy "C:\vcpkg\installed\x64-windows\include\uv.h" "%DEPS_DIR%\include\libuv\uv.h"
28+
if %errorlevel% neq 0 echo ERROR: Failed to copy uv.h
29+
copy "C:\vcpkg\installed\x64-windows\lib\uv.lib" "%DEPS_DIR%\lib\uv.lib"
30+
if %errorlevel% neq 0 echo ERROR: Failed to copy uv.lib
3431

35-
echo Debug: Copying LibUV files...
36-
copy "C:\vcpkg\installed\x64-windows\include\uv.h" "%DEPS_DIR%\include\libuv\"
37-
xcopy /E /I /H /Y "C:\vcpkg\installed\x64-windows\include\uv" "%DEPS_DIR%\include\libuv\uv\"
38-
copy "C:\vcpkg\installed\x64-windows\lib\uv.lib" "%DEPS_DIR%\lib\"
39-
40-
echo Debug: Checking what we copied...
41-
dir "%DEPS_DIR%\include\libuv\"
42-
dir "%DEPS_DIR%\lib\"
32+
cmd /c buildconf.bat --force
33+
if %errorlevel% neq 0 exit /b 3
4334

4435
if "%THREAD_SAFE%" equ "0" set ADD_CONF=%ADD_CONF% --disable-zts
4536
if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INTRINSICS%

0 commit comments

Comments
 (0)