-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Windows: Static libraries should end with .lib not .a when using the MSVC ABI install #29508
Comments
Duplicateish of #28025. Maybe reopen that instead, since it has more discussion? |
|
Actually, since that would conflict with the import library produced by |
libfoo.a -> foo.lib In order to not cause conflicts, changes the DLL import library name foo.lib -> foo.dll.lib Fixes rust-lang#29508 Because this changes output filenames this is a [breaking-change] Signed-off-by: Peter Atashian <[email protected]>
I'm not sure if this was the best way to go about it, but it seems to work. Fixes #29508 r? @alexcrichton
The standard extension for Windows static libraries is .lib.
By keeping the .a extension while using the MSVC ABI, we are forced to rename the files when integrating Rust libraries into compiler chains that expect .lib as an extension.
Reopening the bug here as suggested by alexcrichton (rust-lang/cargo#2100)
The text was updated successfully, but these errors were encountered: