Skip to content

Porting 2025-06-19 #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions web/wiki/Porting.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,21 @@ Identifier | Platform(s) | Usage
---------------------|----------------------------|----------------------------
`_WIN32` | mingw, msvc | C code (`#ifdef ...`)
`_WIN64` | 64-bit mingw, 64-bit msvc | C code (`#ifdef ...`)
`__MINGW32__` | mingw | C code (`#ifdef ...`)
`__MINGW64__` | 64-bit mingw | C code (`#ifdef ...`)
`__CYGWIN__` | msys2, cygwin | C code (`#ifdef ...`)
`__MSYS__` | msys2 | C code (`#ifdef ...`)
`x86_64-pc-msys2` | 64-bit msys2 | Build scripts (`if [ $host = '...' ]`)
`i686-pc-msys2` | 32-bit msys2 | Build scripts (`if [ $host = '...' ]`)
`x86_64-pc-msys` | 64-bit msys2 (old style) | Build scripts (`if [ $host = '...' ]`)
`i686-pc-msys` | 32-bit msys2 (old style) | Build scripts (`if [ $host = '...' ]`)
`x86_64-pc-cygwin` | 64-bit msys2 (new style) | Build scripts (`if [ $host = '...' ]`)
`i686-pc-cygwin` | 32-bit msys2 (new style) | Build scripts (`if [ $host = '...' ]`)
`x86_64-w64-mingw32` | 64-bit mingw | Build scripts (`if [ $host = '...' ]`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add aarch64-* targets :-D.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to! You probably know those much better.

`i686-w64-mingw32` | 32-bit mingw | Build scripts (`if [ $host = '...' ]`)
`cygwin` | msys2 | Python (`sys.platform`)
`win32` | mingw | Python (`sys.platform`)

("mingw" here includes all non-msys environments: mingw, clang, ucrt)

Filesystem namespaces
---------------------

Expand Down