-
Notifications
You must be signed in to change notification settings - Fork 27
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
CMake: fail for unsupported platforms #54
base: master
Are you sure you want to change the base?
Conversation
Does this not already happen in
|
True. But the check there and the setup here are two different places, so having the "else" here helps finding the places where new platforms must add code. |
6b00a76
to
6d8d123
Compare
But you have a point, we should have explicit checkes in |
I agree about having settings and specific features imported from platform specific folders. That is so much nicer than having a load of if/else statements. |
797190a
to
999c0bf
Compare
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.
I don't have a problem with merging this. Its definitely better to have settings/configuration options for each platform specifically called out, instead of running on assumptions.
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.
That looks good to me.
A somewhat related point (but not for action for this PR) is that it is easy to be confused between vm_minmal
for Arm and minimal
/minimal_64
for x86. In particular, when you try to provide something like x86
or pc99
to the vm_minimal
app, you will be told that it's not supported and may well give up instead of ever finding the minimal
app. We should probably give a hint for this in the error message there (and for Arm in the minimal
apps).
Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
Fail for unsupported platforms instead of doing something with potentially undefined or empty variables results in strange errors later that are a hard to understand.