go: declare support for aarch64

This commit is contained in:
Orivej Desh 2017-10-01 21:31:54 +00:00
parent 2784bd7168
commit 8d4b0eefce

View File

@ -141,6 +141,7 @@ stdenv.mkDerivation rec {
else if stdenv.system == "i686-linux" then "386" else if stdenv.system == "i686-linux" then "386"
else if stdenv.system == "x86_64-linux" then "amd64" else if stdenv.system == "x86_64-linux" then "amd64"
else if stdenv.isArm then "arm" else if stdenv.isArm then "arm"
else if stdenv.isAarch64 then "arm64"
else throw "Unsupported system"; else throw "Unsupported system";
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5"; GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
GO386 = 387; # from Arch: don't assume sse2 on i686 GO386 = 387; # from Arch: don't assume sse2 on i686