Skip to content

Support building OCaml with mingw and LLVM#12

Open
MisterDA wants to merge 4 commits intotrunkfrom
mingw-llvm
Open

Support building OCaml with mingw and LLVM#12
MisterDA wants to merge 4 commits intotrunkfrom
mingw-llvm

Conversation

@MisterDA
Copy link
Owner

No description provided.

@MisterDA MisterDA force-pushed the mingw-llvm branch 2 times, most recently from f568155 to e52a40b Compare October 17, 2023 21:25
Contrary to the comment in `configure.ac`, it is possible to detect
the use MinGW-w64 as a C compiler with the __MINGW32__ macro, which
we're already using throughout the compiler. A header is needed to
retrieve MinGW-w64 version (distinct from GCC). Preprocessor output
[1] needs to be trimmed.

MinGW-w64 can also be coupled to LLVM instead of GCC [2]; to be able
to differentiate the backend compiler and tell its version, the "real"
C compiler vendor information is also included.

As an example, some possible values:
- mingw32-10-0-gcc-11-3,
- mingw32-12-0-clang-17-0.

[1]: https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html
[2]: https://www.mingw-w64.org/downloads/
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