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-compilation #196

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Fix cross-compilation #196

merged 3 commits into from
Mar 20, 2024

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Jan 26, 2024

When trying to cross-compile to wasm32-unknown-unknown (for compilation fail tests only) I realized that the builder command was not actually taking the target into account: it was still building for the host target.

Simply put, the builder command was just not taking Config::target into account.

Dependencies were already compiled to the correct target, but unfortunately I'm not familiar at all with ui_test so there might be something else broken that I didn't try/encounter yet.

Happy to add a test if pointed into the appropriate direction.

@daxpedda daxpedda force-pushed the pass-target branch 2 times, most recently from 2433b77 to 695811a Compare January 27, 2024 12:13
@daxpedda
Copy link
Contributor Author

Fixed the issues brought up in CI and added a comment to the implementation.

@oli-obk
Copy link
Owner

oli-obk commented Jan 27, 2024

Happy to add a test if pointed into the appropriate direction.

I haven't created any cross compile tests yet. It'll probably be annoying to do, so don't worry about it

@oli-obk
Copy link
Owner

oli-obk commented Jan 27, 2024

Hmm... I think I'll need to add tests first. I worry this will interact badly with proc macro aux builds (which need to happen for the host)

@oli-obk oli-obk force-pushed the pass-target branch 5 times, most recently from b53d94d to ba9f2a6 Compare March 20, 2024 15:53
@oli-obk
Copy link
Owner

oli-obk commented Mar 20, 2024

Hmm... I think I'll need to add tests first. I worry this will interact badly with proc macro aux builds (which need to happen for the host)

jup it did interact badly 😆 fixed it now, but still can't get CI to actually work with cross compilation

@oli-obk oli-obk force-pushed the pass-target branch 7 times, most recently from 59ee6c4 to 4ea2280 Compare March 20, 2024 17:11
@oli-obk
Copy link
Owner

oli-obk commented Mar 20, 2024

Oh 🤷 I'm just not gonna test it in CI for now

@oli-obk oli-obk merged commit 6a97ed6 into oli-obk:main Mar 20, 2024
5 checks passed
@daxpedda
Copy link
Contributor Author

Cool, thank you!

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