Skip to content

Commit d5070bd

Browse files
committed
* fix Windows build -> fix libUV path2
1 parent 14142c9 commit d5070bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ set CFLAGS=/W3 /WX /wd4018 /wd4146 /wd4244 /wd4267
3535

3636
rem Copy LibUV from vcpkg to deps directory for async extension
3737
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\"
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\"
4042

4143
cmd /c configure.bat ^
4244
--enable-snapshot-build ^

0 commit comments

Comments
 (0)