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

feat: allow use of unknown arches through commandline #434

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

j-lanson
Copy link
Collaborator

This replaces SupportedArch with an Arch enum, which is further subdivided into Unknown(String) and the KnownArch enum.

Currently DETECTED_ARCH is Option<KnownArch>, but we could expand it to be just Arch, and try to get the target triple at compile time as a string to fill the Arch::Unknown variant. Without doing this, right now you'll be forced to specify --arch on the command line even if you build and run on the same arch, assuming its not one of the KnownArch types.

Copy link
Collaborator

@alilleybrinker alilleybrinker left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@alilleybrinker alilleybrinker left a comment

Choose a reason for hiding this comment

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

Just needs a squash actually, but otherwise LGTM!

@alilleybrinker alilleybrinker merged commit 9b0bb29 into main Sep 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants