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

Add support for mingw targets #24

Open
seritools opened this issue Apr 10, 2024 · 7 comments
Open

Add support for mingw targets #24

seritools opened this issue Apr 10, 2024 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@seritools
Copy link
Member

As requested in #23.

@seritools seritools added enhancement New feature or request help wanted Extra attention is needed labels Apr 10, 2024
@ghost
Copy link

ghost commented May 7, 2024

Any progress?

@seritools
Copy link
Member Author

There have been no contributions on this, no.

@cher-nov
Copy link

I'm open to contributions there, but won't be implementing it myself.

Could you then please outline some kind of roadmap for this? I'd like to try my hand at making this happen, but would like to know where to start. The Rust codebase is a pretty non-obvious thing after all, y'know. :)

@seritools
Copy link
Member Author

@cher-nov I am unfamiliar with the mingw targets and hacks necessary, but roughly it'll be

  1. add targets for rust9x + mingw (see the relevant commit on the rust9x branch)
  2. fix things until they build
  3. fix things until they link
  4. fix things until they run
  5. fix things until they run correctly

Please note that I've also started work on a rust9x update/rebase for ~1.83, which changes a few things.

@cher-nov
Copy link

cher-nov commented Nov 18, 2024

Please note that I've also started work on a rust9x update/rebase for ~1.83, which changes a few things.

This is great, endless thanks. One question: will the rustc itself continue to work on Windows 7 as host system, or rust9x project is only about target platforms? Because starting from 1.78.x the mainline became incompatible with it.
https://blog.rust-lang.org/2024/02/26/Windows-7.html

@seritools
Copy link
Member Author

Rustc itself might work with rust9x, however that is not supported by me. In particular external deps of rustc, cargo, ... might use incompatible APIs and would need patching.

For the update I'm also aiming to use more conditional compilation so that my changes do not affect the normal pc-windows-msvc targets (at least as much, we'll see).

@ssokolow
Copy link

ssokolow commented Dec 4, 2024

I suppose the question for Win7 host support boils down to checking how far that Tier 3 x86_64-win7-windows-msvc target is from getting its Host checkmark.

(Failing that, my own options for experimenting with targeting my retro-hobby PCs using Rust9x are either trying to run the prebuilt x86_64 offering in Wine or figuring out what I need to cross-compile from Linux. Unless I try swtching one of the "RasPi 4, but x86"-class mini-PCs I received as a hand-me-down back from Debian to the Windows 10 they came with, the newest Windows I've got is Win7.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants