nixpkgs-suyu/pkgs/development/compilers/llvm
Luke Granger-Brown 9aa8ae999a llvmPackages_12.llvm: fix building on older CPUs
This commit patches one of the llvm-exegesis tests to swap out whatever
CPU model happens to be on the build host for bdver2 (AMD Family
15h/Piledriver), which was picked because it looks like that was the
intent of the test author. This provides a more predictable compilation
behaviour when running on older (or possibly even newer!) machines.

One of the machines that is currently part of the NixOS Hydra build
farm, wendy, is using an old AMD Opteron CPU for which LLVM has no
scheduling machine model. This causes one of the tests for llvm-exegesis
to fail, because it segfaults trying to use the machine model to produce
useful analysis results.

Note that this particular test only runs on x86-64 build hosts anyway;
aarch64 isn't affected.

This deliberately only patches LLVM 12 to limit the rebuilds; other
LLVM versions are going through staging.
2021-04-17 01:55:53 +00:00
..
5 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
6 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
7 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
8 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
9 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
10 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
11 llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch 2021-04-15 13:24:04 +02:00
12 llvmPackages_12.llvm: fix building on older CPUs 2021-04-17 01:55:53 +00:00
common/compiler-rt llvmPackages: Organize files 2021-03-24 05:02:50 +00:00
rocm Merge branch 'staging-next' into staging 2021-03-26 07:53:44 +01:00
aarch64.patch
exegesis-force-bdver2.patch llvmPackages_12.llvm: fix building on older CPUs 2021-04-17 01:55:53 +00:00
libcxx-0001-musl-hacks.patch
multi.nix
TLI-musl.patch
update.sh llvmPackages: Add an update script 2021-04-01 13:31:48 +02:00