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 build-dependencies resolution when cross-compiling #372

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pnmadelaine
Copy link

@pnmadelaine pnmadelaine commented Dec 4, 2024

This fixes some errors in the resolution of build-dependencies when cross-compiling. All dependencies were computed using the host platform, even build-dependencies which are then compiled for the build platform. I added a minimized example that highlights the issue.

Copy link
Collaborator

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this looks very nice!

@pnmadelaine
Copy link
Author

@Ericson2314 I changed a few things since the opening of the PR: the diff is now smaller and the changes are clearer IMO. I do add a name field to the output of makeDefaultTarget though, maybe that's not desirable? I don't know how close the output should match the content of a rustc target specification file. Of course I can always split back target into target and targetSpec (or some better names) like I was doing in the first place. Anyway, written this way I think the change in the logic appears more clearly. Please tell me if you'd prefer having it split!

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.

2 participants