Skip to content
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

-mwin32 option not supported #450

Open
tomager opened this issue Aug 21, 2024 · 2 comments
Open

-mwin32 option not supported #450

tomager opened this issue Aug 21, 2024 · 2 comments

Comments

@tomager
Copy link

tomager commented Aug 21, 2024

The gcc-supported option -mwin32 doesn't appear to be supported in llvm-mingw/clang.

A handful of the other options listed at [2] are also unsupported, but -mwin32 seems to be the only "core" option that isn't supported on the llvm side.

The supported options are
-mwindows
-municode
-mthreads
-mdll
-mconsole

The unsupported options are
-mpe-aligned-commons
-fwritable-relocated-rdata
-fno-set-stack-executable
-mnop-fun-dllimport
-mwin32

[1] from libusb llvm-mingw build:

# xllvm-x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -mwin32 core.c
clang: error: unknown argument: '-mwin32'

[2] https://gcc.gnu.org/onlinedocs/gcc/Cygwin-and-MinGW-Options.html

[3]

# /xllvm-x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc --version
clang version 18.1.8 (git b2669acf1d335d910be106ced6fca6ef5d67d399)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: /xllvm-x86_64-w64-mingw32/linux-x86_64/bin
@mati865
Copy link
Contributor

mati865 commented Aug 22, 2024

-mwin32 is a Cygwin option, not MinGW/mingw-w64 related one: https://github.com/libusb/libusb/blob/467b6a8896daea3d104958bf0887312c5d14d150/configure.ac#L130

@tomager
Copy link
Author

tomager commented Aug 22, 2024 via email

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

No branches or pull requests

2 participants