Closed alalazo closed 3 years ago
@gonsie I think with the changes here you'll be able to detect Apple M1. There's work I still need to do though to check which are the correct features to be stored in the JSON file and to add proper compiler support for at least gcc
, clang
(LLVM) and apple-clang
.
I think we can merge this as is, and improve later on compiler flags.
refers to https://github.com/archspec/archspec/issues/38
This PR adds an entry for Apple M1. Currently I don't have a CPU to test on, so I'm coding this based on reported output from
sysctl
. It seems we don't have much information from Apple, in particular concerning CPU features. I think that all the features listed ashw.optional
should be added to the JSON file but I still need to double check if this is consistent with the semantics of otheraarch64
architectures.Also, the compiler flags are generic for armv8.4-a and not tested on any actual application. It would be good if reviewers could comment on that.