Skip to content

Conversation

AdamDorwart
Copy link

During some experimentation with pixi build --target-platform <target> I noticed if I had multiple packages in a workspace with dependencies they would build fine with just pixi build but adding --target-platform would fail. If it was just a single independent package it worked fine but the dependencies would report as not existing for the target platform.

After a bit of digging I discovered this fix would propagate the target platform correctly so that transitive dependencies would build for my target platform.

@AdamDorwart AdamDorwart changed the title Propagate target-platform flags for pixi build fix: Propagate target-platform flags for pixi build Oct 7, 2025
@AdamDorwart
Copy link
Author

I'm still testing to make sure this works the way I expect but wanted to open the PR to start the conversation and get feedback.

@AdamDorwart
Copy link
Author

AdamDorwart commented Oct 8, 2025

@ruben-arts I was able to test this locally and confirm it solves the cross compilation issue I was seeing with multiple source packages in a workspace. What else do you need from me to get this merged?

@ruben-arts
Copy link
Contributor

Thank you @AdamDorwart!

This code is mostly untouched by me, @baszalmstra would you know a way we could confidently write a test for this?

@ruben-arts ruben-arts requested a review from baszalmstra October 8, 2025 14:36
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.

4 participants