-
Notifications
You must be signed in to change notification settings - Fork 70
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
Error if the wrong architecture is being used #41
Conversation
Hm, I had a check like this in a previous incarnation of these crates (here) and it wasn't well received ... Looking at So I think we should go a route similar to what they did over there: 875ee38398f6 (" map asm! ops to unimplemented! on non ARM targets ") Though I think using But this will still not address the issue of people accidentally building for the host. We'll have to find another way to address that, which doesn't interfere with the above ... |
What if, instead of going to Alternatively, we could move the changes I made in this PR to your |
I think the problem over in
Actually, that's a very good idea! |
I referenced this PR in the error message as I link to some of the issues where this occurs, but we may want to create a FAQ section and link to that instead. The seven spaces before the error message is significant:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks!
I'm still running into this issue with vscode and the template default.
|
It looks like vscode is ignoring the |
I was running into the same issue with a default project directly from cargo generate. I was able to get rid of the error by disabling |
There have been a couple times where an incorrectly set target file has caused errors that don't immediately point to the problem. Instead, we should show an error immediately telling the user that the wrong architecture has been selected.