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

Add target setting that enables building single architecture only #63

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

pronebird
Copy link
Contributor

@pronebird pronebird commented Aug 10, 2024

This PR adds ability to scope package builds to individual target triplet using an optional --target <target-triplet> CLI setting. The CLI tool will error if the specified target does not match any of the architectures in the returned list of targets. When omitted, the build proceeds as normal by building all targets in succession.

As described in the linked issue, I believe this addition could help to cut build times during development and achieve a similar behaviour as ONLY_ACTIVE_ARCH flag in Xcode build configuration when integrating build process using external build system.

Fixes #62

@antoniusnaumann
Copy link
Owner

I agree that this is a useful feature. Thanks for implementing!

@pronebird
Copy link
Contributor Author

I will fix clippy tomorrow.

@pronebird
Copy link
Contributor Author

Clippy should be happy now. Please re-run the workflow.

@antoniusnaumann
Copy link
Owner

Thanks. Please ignore the failing dependencies workflow. I'll update that one on main after merge.

@antoniusnaumann antoniusnaumann merged commit b7ea4fe into antoniusnaumann:main Aug 11, 2024
16 of 17 checks passed
@pronebird pronebird deleted the build-target branch August 12, 2024 14:54
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.

Possible to build single arch?
2 participants