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

--emit=obj for Windows msvc producing .o instead of .obj #37207

Open
4 tasks
retep998 opened this issue Oct 16, 2016 · 1 comment
Open
4 tasks

--emit=obj for Windows msvc producing .o instead of .obj #37207

retep998 opened this issue Oct 16, 2016 · 1 comment
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.

Comments

@retep998
Copy link
Member

retep998 commented Oct 16, 2016

rustc 1.14.0-nightly (19ac57926 2016-10-08)
binary: rustc
commit-hash: 19ac57926abb749a93e2eb84502048d9c57f2d7b
commit-date: 2016-10-08
host: x86_64-pc-windows-msvc
release: 1.14.0-nightly

Doing rustc --emit=obj foo.rs results in foo.o instead of the expected foo.obj.

TODO:

  • Investigate what automation or tools out there rely on --emit=obj using the .o extension and work with the pc-windows-msvc targets.
  • Investigate the feasibility of adjusting such automation or tools to support the .obj extension instead for pc-windows-msvc.
  • Add a obj_suffix to the target options and set it to obj only for pc-windows-msvc targets.
  • Adjust the aforementioned automation and tools and post something in the release notes.

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

@sanxiyn sanxiyn added the O-windows Operating system: Windows label Oct 17, 2016
@retep998 retep998 added the O-windows-msvc Toolchain: MSVC, Operating system: Windows label Jan 11, 2017
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 26, 2017
@Enselic
Copy link
Member

Enselic commented Sep 14, 2023

Triage: Still reproduces on latest nightly.

@Enselic Enselic added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

4 participants