--emit=obj for Windows msvc producing .o instead of .obj #37207
Labels
C-bug
Category: This is a bug.
O-windows
Operating system: Windows
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Doing
rustc --emit=obj foo.rs
results infoo.o
instead of the expectedfoo.obj
.TODO:
--emit=obj
using the.o
extension and work with thepc-windows-msvc
targets..obj
extension instead forpc-windows-msvc
.obj_suffix
to the target options and set it toobj
only forpc-windows-msvc
targets.Note that because MSVC is such a different target than GNU targets, any sort of automation or tooling that specifically needs object files would already be quite conditional on MSVC being different to invoke the linker correctly and such. Therefore I am of the opinion that the fallout from this change should be minimal and very easy to fix. If anyone can find any examples that prove me wrong, please do so.
Places to search for potential automation or tools: https://github.com/search?utf8=%E2%9C%93&q=--emit+obj&type=Code&ref=searchresults
The text was updated successfully, but these errors were encountered: