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

`rustc --crate-type=dylib -o name` produces `name.exe` on windows #13794

Closed
klutzy opened this Issue Apr 27, 2014 · 4 comments

Comments

Projects
None yet
8 participants
@klutzy
Copy link
Contributor

klutzy commented Apr 27, 2014

$ touch empty.rs
$ rustc empty.rs --crate-type=dylib -o empty
$ ls
empty.exe
empty.rs

It produces empty if crate type is rlib or staticlib.

@huonw huonw added the A-windows label Apr 27, 2014

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Apr 27, 2014

I've heard of the mingw ld silently putting the .exe suffix on outputs before, I also remember that there's some sort of switch to tell it to stop doing that. Then again, I also remember that we wanted this addition of .exe at least some of the time...

@brson brson referenced this issue Aug 12, 2014

Closed

Windows metabug #16459

28 of 33 tasks complete

@brson brson added the I-nominated label Aug 28, 2014

@pnkfelix

This comment has been minimized.

Copy link
Member

pnkfelix commented Aug 28, 2014

P-low, not 1.0.

@pnkfelix pnkfelix added P-low and removed I-nominated labels Aug 28, 2014

@vadimcn

This comment has been minimized.

Copy link
Contributor

vadimcn commented Feb 20, 2015

Not sure this is wrong, actually. This is clearly a compatibility feature for the benefit of Unix-y shell scripts. On Unix executable files are designated by a permissions bit, but on Windows - by extension. If Windows ld were to create an extension-less file, it couldn't be executed.

@steveklabnik

This comment has been minimized.

Copy link
Member

steveklabnik commented Sep 24, 2018

This doesn't appear to happen today; at least, not with the MSVC toolchain, which is the recommended one. With no comments since 2015, including one that says this may not be a bug, I'm going to give this a close. If this is in error, please let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.