Skip to content

Commit 294dec1

Browse files
committed
[tests] add vscale patch to rv32 clang
Signed-off-by: Avimitin <[email protected]>
1 parent 3bb90b9 commit 294dec1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nix/overlay.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,17 @@ rec {
100100
rev = "bb123ff9401b517d877de4ed6fd9ea61edf49dbb";
101101
hash = "sha256-6ca5FhSsG5Qik7wi6Vn3OmUmKR/hULSDniu4JLo+5jM=";
102102
};
103+
vscalePatch = prev.fetchpatch {
104+
url = "https://github.com/llvm/llvm-project/pull/140195.patch";
105+
hash = "sha256-fevg7xQ/9RuOvGnT9uBhBAoM0wq+hB0tvidsg2LkxG8=";
106+
stripLen = 1;
107+
};
103108
in
104109
llvmPackages.clang-unwrapped.override {
105110
monorepoSrc = llvmSrc;
106-
libllvm = llvmPackages.libllvm.override { monorepoSrc = llvmSrc; };
111+
libllvm = (llvmPackages.libllvm.override { monorepoSrc = llvmSrc; }).overrideAttrs (old: {
112+
patches = old.patches ++ [ vscalePatch ];
113+
});
107114
};
108115
in
109116
rv32_buildPkgs.wrapCCWith rec {

0 commit comments

Comments
 (0)