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

Fix cross-compile same-triple problem using unstable flags even for stable channel #137

Closed
wants to merge 2 commits into from

Conversation

samliddicott
Copy link

Without this fix, rust/cargo assumes that if host-triple matches target-triple, that the target linker (and tools) can be used to for the build-scripts which run during build.

This PR has @rich-g's fix #128
as well as the fix described here on guidance from @jameshilliard here rust-lang/cc-rs#82 (comment)

I see that @banditopazzo has a similar fix as a #133

rich-g and others added 2 commits December 1, 2022 09:09
The env vars LD and TARGET_LD are exported, but incorrectly refer to a script that doesn't exist (probably a typo). Fix the typo to refer to the proper scripts.

Fixes rust-embedded#128
This fixes cross-compiles with same-triple where target linker
and tools would be used for build-scripts that run on host
@willstott101
Copy link

willstott101 commented Apr 11, 2023

I assume this will cause errors on the older versions of cargo supported by this layer? I wonder what the opinion is on supporting older versions (I'm not a maintainer here), either way those recipes should be removed in this PR, or this should be hidden behind a switch based on the cargo version?

@jameshilliard
Copy link

I assume this will cause errors on the older versions of cargo supported by this layer?

Well this should at least work with 0.54.0 and newer at least.

@posborne
Copy link
Member

Should be addressed by #146

@posborne posborne closed this Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect LD/TARGET_LD env vars
5 participants