Skip to content

Conversation

@Edward-Elric233
Copy link
Contributor

Fix CMakeLists.txt compiler detection to support MinGW/GCC compilation. Previously assumed all non-MSVC compilers support -fuse-ld=lld-link, but MinGW/GCC doesn't support this option.

Now uses appropriate linker flags based on compiler type:

  • Clang: -fuse-ld=lld-link -lmsvcrt
  • MinGW/GCC: -lmsvcrt
  • MSVC: /STACK:8388608

Branch: fix/mingw-build-support-20251028

Fix CMakeLists.txt compiler detection to support MinGW/GCC compilation.
Previously assumed all non-MSVC compilers support -fuse-ld=lld-link,
but MinGW/GCC doesn't support this option.

Now uses appropriate linker flags based on compiler type:
- Clang: -fuse-ld=lld-link -lmsvcrt
- MinGW/GCC: -lmsvcrt
- MSVC: /STACK:8388608

Branch: fix/mingw-build-support-20251028
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