-
Notifications
You must be signed in to change notification settings - Fork 483
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 custom target compile is broken #1405
Comments
If you are using cargo and using cc in build scripy, then cc should be able to infer these info from cargo environment variables passed down. Are you using cc in build script, or in other use cases? |
hi, my usecase is bootstraping rustc itself:
this is the backtrace:
|
If I update cc-rs locally, the error is more verbose:
so yeah, this is how I ended up here :D |
@NobodyXu is it correct to add my custom target to src/target/generated.rs? |
No it's an automatic generated file. |
It is incorrect to keep a generated list of all "valid" target triples, and you should parse the target triple information instead as to not break assorted embedded vendored or os vendored compilers that bring their own platform triples. |
I believe this is a dup of #1317 |
hey there,
I hope I'm at the right spot to ask for help with my problem: starting with rust-1.85.0_beta, I'm unable to compile my custom target I've been using for many years now:
this is the output of rustc -Vv
How can I hack the target infos into the vendored cc crate, please?
The text was updated successfully, but these errors were encountered: