llvm*: patch to fix a test on older CPUs
- 10, 11, 12: use the upstream patch - 9: use Luke's patch as the upstream patch won't apply
This commit is contained in:
parent
5121d67a3c
commit
ea306f6dfc
|
@ -1,6 +1,7 @@
|
||||||
{ lib, stdenv, llvm_meta
|
{ lib, stdenv, llvm_meta
|
||||||
, pkgsBuildBuild
|
, pkgsBuildBuild
|
||||||
, fetch
|
, fetch
|
||||||
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python3
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
|
@ -57,6 +58,13 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
# On older CPUs (e.g. Hydra/wendy) we'd be getting an error in this test.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "uops-CMOV16rm-noreg.diff";
|
||||||
|
url = "https://github.com/llvm/llvm-project/commit/9e9f991ac033.diff";
|
||||||
|
sha256 = "sha256:12s8vr6ibri8b48h2z38f3afhwam10arfiqfy4yg37bmc054p5hi";
|
||||||
|
stripLen = 1;
|
||||||
|
})
|
||||||
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
||||||
|
|
||||||
postPatch = optionalString stdenv.isDarwin ''
|
postPatch = optionalString stdenv.isDarwin ''
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib, stdenv, llvm_meta
|
{ lib, stdenv, llvm_meta
|
||||||
, pkgsBuildBuild
|
, pkgsBuildBuild
|
||||||
, fetch
|
, fetch
|
||||||
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python3
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
|
@ -57,6 +58,13 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
# On older CPUs (e.g. Hydra/wendy) we'd be getting an error in this test.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "uops-CMOV16rm-noreg.diff";
|
||||||
|
url = "https://github.com/llvm/llvm-project/commit/9e9f991ac033.diff";
|
||||||
|
sha256 = "sha256:12s8vr6ibri8b48h2z38f3afhwam10arfiqfy4yg37bmc054p5hi";
|
||||||
|
stripLen = 1;
|
||||||
|
})
|
||||||
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
||||||
|
|
||||||
postPatch = optionalString stdenv.isDarwin ''
|
postPatch = optionalString stdenv.isDarwin ''
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib, stdenv, llvm_meta
|
{ lib, stdenv, llvm_meta
|
||||||
, pkgsBuildBuild
|
, pkgsBuildBuild
|
||||||
, fetch
|
, fetch
|
||||||
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python3
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
|
@ -56,10 +57,14 @@ in stdenv.mkDerivation (rec {
|
||||||
propagatedBuildInputs = [ ncurses zlib ];
|
propagatedBuildInputs = [ ncurses zlib ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Force a test to evaluate the saved benchmark for a CPU for which LLVM has
|
|
||||||
# an execution model. See NixOS/nixpkgs#119673.
|
|
||||||
../../exegesis-force-bdver2.patch
|
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
# On older CPUs (e.g. Hydra/wendy) we'd be getting an error in this test.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "uops-CMOV16rm-noreg.diff";
|
||||||
|
url = "https://github.com/llvm/llvm-project/commit/9e9f991ac033.diff";
|
||||||
|
sha256 = "sha256:12s8vr6ibri8b48h2z38f3afhwam10arfiqfy4yg37bmc054p5hi";
|
||||||
|
stripLen = 1;
|
||||||
|
})
|
||||||
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
||||||
|
|
||||||
postPatch = optionalString stdenv.isDarwin ''
|
postPatch = optionalString stdenv.isDarwin ''
|
||||||
|
|
|
@ -57,6 +57,9 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
# Force a test to evaluate the saved benchmark for a CPU for which LLVM has
|
||||||
|
# an execution model. See NixOS/nixpkgs#119673.
|
||||||
|
../../exegesis-force-bdver2.patch
|
||||||
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
|
||||||
|
|
||||||
postPatch = optionalString stdenv.isDarwin ''
|
postPatch = optionalString stdenv.isDarwin ''
|
||||||
|
|
Loading…
Reference in New Issue