Skip to content

fix(ci): use cmake --build . instead of make for luv - #61

Merged
tkolleh merged 1 commit into
mainfrom
dependabot
Apr 19, 2026
Merged

fix(ci): use cmake --build . instead of make for luv#61
tkolleh merged 1 commit into
mainfrom
dependabot

Conversation

@tkolleh

@tkolleh tkolleh commented Apr 19, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the Windows build release job failure: error: passing argument 3 of 'uv__convert_utf16_to_utf8' from incompatible pointer type [-Wincompatible-pointer-types].

Root Cause

On Windows (MSYS2), CMake defaults to the Ninja generator. Running make after cmake . caused the build to use luv's original Makefile instead of the CMake-generated build system. The original Makefile ran its own cmake command, ignoring our CMAKE_C_FLAGS (including the GCC 14+ pointer fix).

Changes

  • justfile: Use cmake --build . to build luv using the generated build system.
  • justfile: Handle copying luv.dll on Windows instead of failing on luv.so.

Testing

This ensures the CMake-generated build system (Ninja on Windows) is used, which respects the CMAKE_C_FLAGS we passed.

On Windows (MSYS2), CMake defaults to the Ninja generator. Running 'make'
after 'cmake .' caused the build to use luv's original Makefile instead of
the CMake-generated build system. The original Makefile ran its own cmake
command, ignoring our CMAKE_C_FLAGS (including the GCC 14+ pointer fix).

Fixes:
- Use 'cmake --build .' to build luv using the generated build system
- Handle copying luv.dll on Windows instead of failing on luv.so
@tkolleh
tkolleh merged commit 8431c0b into main Apr 19, 2026
2 checks passed
@tkolleh
tkolleh deleted the dependabot branch April 19, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant