@@ -23,6 +23,24 @@ if %errorlevel% neq 0 exit /b 3
2323cmd /c buildconf.bat --force
2424if %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+
2644if " %THREAD_SAFE% " equ " 0" set ADD_CONF = %ADD_CONF% --disable-zts
2745if " %INTRINSICS% " neq " " set ADD_CONF = %ADD_CONF% --enable-native-intrinsics=%INTRINSICS%
2846if " %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
3351rem C4267: 'size_t' type conversion, possible loss of data
3452set 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-
4354cmd /c configure.bat ^
4455 --enable-snapshot-build ^
4556 --disable-debug-pack ^
0 commit comments