go: Bootstrap on RISC-V with gccgo

authored by Zhaofeng Li and committed by zowoq 30e7afbd b18e6977

+9 -6
+3 -2
pkgs/development/compilers/go/1.18.nix
··· 17 }: 18 19 let 20 - goBootstrap = if stdenv.buildPlatform.isMusl then buildPackages.gccgo else buildPackages.callPackage ./bootstrap116.nix { }; 21 22 skopeoTest = skopeo.override { buildGoModule = buildGo118Module; }; 23 ··· 113 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686 114 CGO_ENABLED = 1; 115 116 - GOROOT_BOOTSTRAP = if stdenv.buildPlatform.isMusl then goBootstrap else "${goBootstrap}/share/go"; 117 118 buildPhase = '' 119 runHook preBuild
··· 17 }: 18 19 let 20 + useGccGoBootstrap = stdenv.buildPlatform.isMusl || stdenv.buildPlatform.isRiscV; 21 + goBootstrap = if useGccGoBootstrap then buildPackages.gccgo else buildPackages.callPackage ./bootstrap116.nix { }; 22 23 skopeoTest = skopeo.override { buildGoModule = buildGo118Module; }; 24 ··· 114 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686 115 CGO_ENABLED = 1; 116 117 + GOROOT_BOOTSTRAP = if useGccGoBootstrap then goBootstrap else "${goBootstrap}/share/go"; 118 119 buildPhase = '' 120 runHook preBuild
+3 -2
pkgs/development/compilers/go/1.19.nix
··· 17 }: 18 19 let 20 - goBootstrap = if stdenv.buildPlatform.isMusl then buildPackages.gccgo else buildPackages.callPackage ./bootstrap116.nix { }; 21 22 skopeoTest = skopeo.override { buildGoModule = buildGo119Module; }; 23 ··· 113 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686 114 CGO_ENABLED = 1; 115 116 - GOROOT_BOOTSTRAP = if stdenv.buildPlatform.isMusl then goBootstrap else "${goBootstrap}/share/go"; 117 118 buildPhase = '' 119 runHook preBuild
··· 17 }: 18 19 let 20 + useGccGoBootstrap = stdenv.buildPlatform.isMusl || stdenv.buildPlatform.isRiscV; 21 + goBootstrap = if useGccGoBootstrap then buildPackages.gccgo else buildPackages.callPackage ./bootstrap116.nix { }; 22 23 skopeoTest = skopeo.override { buildGoModule = buildGo119Module; }; 24 ··· 114 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686 115 CGO_ENABLED = 1; 116 117 + GOROOT_BOOTSTRAP = if useGccGoBootstrap then goBootstrap else "${goBootstrap}/share/go"; 118 119 buildPhase = '' 120 runHook preBuild
+3 -2
pkgs/development/compilers/go/1.20.nix
··· 17 }: 18 19 let 20 - goBootstrap = if stdenv.buildPlatform.isMusl then buildPackages.gccgo else buildPackages.callPackage ./bootstrap117.nix { }; 21 22 skopeoTest = skopeo.override { buildGoModule = buildGo120Module; }; 23 ··· 113 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686 114 CGO_ENABLED = 1; 115 116 - GOROOT_BOOTSTRAP = if stdenv.buildPlatform.isMusl then goBootstrap else "${goBootstrap}/share/go"; 117 118 buildPhase = '' 119 runHook preBuild
··· 17 }: 18 19 let 20 + useGccGoBootstrap = stdenv.buildPlatform.isMusl || stdenv.buildPlatform.isRiscV; 21 + goBootstrap = if useGccGoBootstrap then buildPackages.gccgo else buildPackages.callPackage ./bootstrap117.nix { }; 22 23 skopeoTest = skopeo.override { buildGoModule = buildGo120Module; }; 24 ··· 114 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686 115 CGO_ENABLED = 1; 116 117 + GOROOT_BOOTSTRAP = if useGccGoBootstrap then goBootstrap else "${goBootstrap}/share/go"; 118 119 buildPhase = '' 120 runHook preBuild