about summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2023-01-25 19:11:12 +1000
committerGitHub <noreply@github.com>2023-01-25 10:11:12 +0100
commitd56f7d9fe4920e85092c36fa191ef05b58929774 (patch)
treeb087d26c0f6d677c509e2f7152ae83b417a62a9d /pkgs/top-level
parent740037965ba3bbb387322b152930de649449dcec (diff)
go: various gccgo changes (#211850)
* gccgo: mark broken on darwin

* gccgo12: init

create versioned gccgo for bootstrapping go

* go: use versioned gccgo for bootstrapping
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/all-packages.nix17
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 437867c3baab8..5ce449c85a7a7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14553,13 +14553,28 @@ with pkgs;
 
   gnu-smalltalk = callPackage ../development/compilers/gnu-smalltalk { };
 
-  gccgo = wrapCC ((if stdenv.hostPlatform.isMusl then gcc_latest else gcc).cc.override {
+  gccgo = wrapCC (gcc.cc.override {
     name = "gccgo";
     langCC = true; #required for go.
     langC = true;
     langGo = true;
     langJit = true;
     profiledCompiler = false;
+  } // {
+    # not supported on darwin: https://github.com/golang/go/issues/463
+    meta.broken = stdenv.hostPlatform.isDarwin;
+  });
+
+  gccgo12 = wrapCC (gcc12.cc.override {
+    name = "gccgo";
+    langCC = true; #required for go.
+    langC = true;
+    langGo = true;
+    langJit = true;
+    profiledCompiler = false;
+  } // {
+    # not supported on darwin: https://github.com/golang/go/issues/463
+    meta.broken = stdenv.hostPlatform.isDarwin;
   });
 
   ghdl = ghdl-mcode;