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

Support cross compilation / CompileKind::target inference #8

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

LittleBoxOfSunshine
Copy link
Contributor

Inspect env:OUT_DIR to determine CompileKind, injecting target into the output path if found.

Originally, I had it working with get_project_root (see #3 discussion), but when copying that code over I noticed that it will cause the tests to fail since the tests aren't recreating a full cargo build environment.

Not sure if that's the direction @prenwyn wants to go or not, so what I've changed it to be best effort to keep the tests happy. The ideal solution in my opinion would be to revamp the testing to run cargo build on sample project(s) to test the various setups.

@prenwyn
Copy link
Collaborator

prenwyn commented Dec 19, 2023

I think using get_project_root is probably a better solution and I'm happy to rewrite the tests so that they work with the new code.

@prenwyn
Copy link
Collaborator

prenwyn commented Dec 19, 2023

I think in this case it's safe to ignore any failed tests as they were written for the initial project, which was a hack I made for some linux gamedev that I was working.

@prenwyn
Copy link
Collaborator

prenwyn commented Dec 19, 2023

However for now will merge this pull request to close #3

@prenwyn prenwyn merged commit 496afd4 into samwoodhams:main Dec 19, 2023
1 check passed
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.

None yet

2 participants