-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
In #14393 that adds support for AVR microcontrollers, the target CPU model must be specified (it impacts a lot of thing, from codegen to the linker) and I expose it as a compile time flag, so we can decide to implement something differently depending on the CPU model, for example abstract which pins are available, among other things.
Now, it might be interesting to always expose the CPU model when it has been specified with --mcpu. It might be useful when targeting ARM?
As a complement, or alternative, it might be more useful to expose CPU features for X86 or ARM. For example avx2, cx16, neon or lse.
Of course that would increase the surface of flags even more, but this is already happening in a way that is hardly controllable anyways.
Reference: #14393 (comment)