lib/systems/platforms: add Apple M1
This commit is contained in:
parent
c99904e113
commit
23cae56ca7
|
@ -375,6 +375,13 @@ rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
apple-m1 = {
|
||||||
|
gcc = {
|
||||||
|
arch = "armv8.3-a+crypto+sha2+aes+crc+fp16+lse+simd+ras+rdm+rcpc";
|
||||||
|
cpu = "apple-a13";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
##
|
##
|
||||||
## MIPS
|
## MIPS
|
||||||
##
|
##
|
||||||
|
@ -495,7 +502,10 @@ rec {
|
||||||
else if lib.versionOlder version "6" then sheevaplug
|
else if lib.versionOlder version "6" then sheevaplug
|
||||||
else if lib.versionOlder version "7" then raspberrypi
|
else if lib.versionOlder version "7" then raspberrypi
|
||||||
else armv7l-hf-multiplatform
|
else armv7l-hf-multiplatform
|
||||||
else if platform.isAarch64 then aarch64-multiplatform
|
|
||||||
|
else if platform.isAarch64 then
|
||||||
|
if platform.isDarwin then apple-m1
|
||||||
|
else aarch64-multiplatform
|
||||||
|
|
||||||
else if platform.isRiscV then riscv-multiplatform
|
else if platform.isRiscV then riscv-multiplatform
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue