Skip to content

Commit 14142c9

Browse files
committed
* fix Windows build -> fix libUV path
1 parent d493d1f commit 14142c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ rem C4244: type conversion, possible loss of data
3333
rem C4267: 'size_t' type conversion, possible loss of data
3434
set CFLAGS=/W3 /WX /wd4018 /wd4146 /wd4244 /wd4267
3535

36-
rem Set LibUV paths for async extension
37-
set LIBUV_INCLUDE=C:\vcpkg\installed\x64-windows\include
38-
set LIBUV_LIB=C:\vcpkg\installed\x64-windows\lib
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+
xcopy /E /I /H /Y "C:\vcpkg\installed\x64-windows\include\*" "%DEPS_DIR%\include\libuv\"
39+
xcopy /E /I /H /Y "C:\vcpkg\installed\x64-windows\lib\uv.lib" "%DEPS_DIR%\lib\"
3940

4041
cmd /c configure.bat ^
4142
--enable-snapshot-build ^
@@ -44,7 +45,6 @@ cmd /c configure.bat ^
4445
--enable-object-out-dir=%PHP_BUILD_OBJ_DIR% ^
4546
--with-php-build=%DEPS_DIR% ^
4647
--enable-async ^
47-
--with-libuv=%LIBUV_INCLUDE% ^
4848
%ADD_CONF% ^
4949
--disable-test-ini
5050
if %errorlevel% neq 0 exit /b 3

0 commit comments

Comments
 (0)