-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustbuild should compile rsbegin/rsend for TARGET not for HOST #36290
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
Comments
FWIW, trying to cross compile to i686-pc-windows-gnu I get this:
Trying to cross compile to x86_64-pc-windows-gnu results in #36291 |
Yeah not passing |
Actually, the solution is the opposite. rustbuild is building these startup files for linux but it should compile them for windows hence the |
Oh right sorry "it" there was "would cause this problem", we should indeed pass |
Uh oh!
There was an error while loading. Please reload this page.
Because that's what the old build system does:
but rustbuild doesn't pass the
--target
and rsbegin.o ends up being an ELF on linux:The fix should be simple in theory. You just have to pass
--target $TARGET
to theCommand
in the code linked above. But then you run in problems with the order of the operations: "core
not found for $TARGET".Meta
cc @alexcrichton
The text was updated successfully, but these errors were encountered: