Skip to content

fix(core): Correct DbgHelp.h capitalisation for MinGW cross-compilation#1813

Merged
SanderMertens merged 1 commit into
SanderMertens:masterfrom
thomashodgkinson1987:fix/mingw-case-sensitivity
Sep 28, 2025
Merged

fix(core): Correct DbgHelp.h capitalisation for MinGW cross-compilation#1813
SanderMertens merged 1 commit into
SanderMertens:masterfrom
thomashodgkinson1987:fix/mingw-case-sensitivity

Conversation

@thomashodgkinson1987

Copy link
Copy Markdown
Contributor

This change modifies the include to use lowercase, which matches the de facto standard for MinGW header packaging on all major Linux distributions (Fedora, Debian, Arch). This resolves a case-sensitivity build failure when cross-compiling.

Closes #1812

@SanderMertens

Copy link
Copy Markdown
Owner

LGTM! Can you also update distr/flecs.c with the change? That will fix the CI failure.

When cross-compiling on a case-sensitive filesystem (like Linux), the
build fails because the MinGW packages for major distributions provide
the Windows 'dbghelp' headers and libraries in all-lowercase.

This change corrects the casing in two places to align with this
standard:

1. The #include in src/os_api.c is changed to <dbghelp.h>.
2. The target_link_libraries() call in CMakeLists.txt is changed to
   link against 'dbghelp'.

This resolves both the compilation and subsequent linking errors.

Closes #1813
@SanderMertens

Copy link
Copy Markdown
Owner

Thanks!

@SanderMertens SanderMertens merged commit 13e741e into SanderMertens:master Sep 28, 2025
74 checks passed
@thomashodgkinson1987 thomashodgkinson1987 deleted the fix/mingw-case-sensitivity branch September 29, 2025 07:35
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.

Cross-compilation for Windows fails on Linux due to DbgHelp.h capitalisation

2 participants