Skip to content

Commit 0d29113

Browse files
committed
* fix Windows build -> fix libUV path3
1 parent d5070bd commit 0d29113

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ if %errorlevel% neq 0 exit /b 3
2323
cmd /c buildconf.bat --force
2424
if %errorlevel% neq 0 exit /b 3
2525

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+
32+
if not exist "%DEPS_DIR%\include\libuv" mkdir "%DEPS_DIR%\include\libuv"
33+
if not exist "%DEPS_DIR%\lib" mkdir "%DEPS_DIR%\lib"
34+
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\"
43+
2644
if "%THREAD_SAFE%" equ "0" set ADD_CONF=%ADD_CONF% --disable-zts
2745
if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INTRINSICS%
2846
if "%ASAN%" equ "1" set ADD_CONF=%ADD_CONF% --enable-sanitizer --enable-debug-pack
@@ -33,13 +51,6 @@ rem C4244: type conversion, possible loss of data
3351
rem C4267: 'size_t' type conversion, possible loss of data
3452
set CFLAGS=/W3 /WX /wd4018 /wd4146 /wd4244 /wd4267
3553

36-
rem Copy LibUV from vcpkg to deps directory for async extension
37-
if not exist "%DEPS_DIR%\include\libuv" mkdir "%DEPS_DIR%\include\libuv"
38-
if not exist "%DEPS_DIR%\lib" mkdir "%DEPS_DIR%\lib"
39-
xcopy /E /I /H /Y "C:\vcpkg\installed\x64-windows\include\uv.h" "%DEPS_DIR%\include\libuv\"
40-
xcopy /E /I /H /Y "C:\vcpkg\installed\x64-windows\include\uv" "%DEPS_DIR%\include\libuv\uv\"
41-
copy "C:\vcpkg\installed\x64-windows\lib\uv.lib" "%DEPS_DIR%\lib\"
42-
4354
cmd /c configure.bat ^
4455
--enable-snapshot-build ^
4556
--disable-debug-pack ^

0 commit comments

Comments
 (0)