Skip to content

Commit

Permalink
go: Add patches to support Sv57 addressing on riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli authored and zowoq committed Jan 22, 2023
1 parent 3970842 commit 658c788
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/compilers/go/1.18.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, stdenv
, fetchpatch
, fetchurl
, tzdata
, substituteAll
Expand Down Expand Up @@ -86,6 +87,12 @@ stdenv.mkDerivation rec {
})
./remove-tools-1.11.patch
./go_no_vendor_checks-1.16.patch

# runtime: support riscv64 SV57 mode
(fetchpatch {
url = "https://github.com/golang/go/commit/1e3c19f3fee12e5e2b7802a54908a4d4d03960da.patch";
sha256 = "sha256-mk/9gXwQEcAkiRemF6GiNU0c0fhDR29/YcKgQR7ONTA=";
})
];

GOOS = stdenv.targetPlatform.parsed.kernel.name;
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/go/1.19.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, stdenv
, fetchpatch
, fetchurl
, tzdata
, substituteAll
Expand Down Expand Up @@ -86,6 +87,12 @@ stdenv.mkDerivation rec {
})
./remove-tools-1.11.patch
./go_no_vendor_checks-1.16.patch

# runtime: support riscv64 SV57 mode
(fetchpatch {
url = "https://github.com/golang/go/commit/1e3c19f3fee12e5e2b7802a54908a4d4d03960da.patch";
sha256 = "sha256-mk/9gXwQEcAkiRemF6GiNU0c0fhDR29/YcKgQR7ONTA=";
})
];

GOOS = stdenv.targetPlatform.parsed.kernel.name;
Expand Down

0 comments on commit 658c788

Please sign in to comment.