Merge pull request #4000 from martin-frbg/applem2
Support Apple A15/M2 cpus through the existing VORTEX target
This commit is contained in:
commit
e0f8b4fef4
|
@ -268,7 +268,8 @@ int detect(void)
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
|
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
|
||||||
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX;
|
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX; //A12/M1
|
||||||
|
if (value == 3660830781) return CPU_VORTEX; //A15/M2
|
||||||
#endif
|
#endif
|
||||||
return CPU_ARMV8;
|
return CPU_ARMV8;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue