nixpkgs/pkgs/development/compilers/llvm/12
sternenseemann 0046076950 llvmPackages_{7-12}.compiler-rt: install resource files to DATADIR
This is in an effort to fix the following build failure shown by
chromium:

    clang++: error: no such file or directory: '/nix/store/fhd89wrmkx6nflzjk0d6waz70bk3zc4i-clang-wrapper-12.0.0/resource-root/share/cfi_blacklist.txt'

As it turns out a change introduced via the gnu-install-dirs.patch
caused `add_compiler_rt_resource_file` to install resource files to
$dev/include (FULL_INCLUDEDIR) instead of $out/share (FULL_DATADIR)
which in turn meant that the clang wrappers we had didn't link those
files to its resource root at all.

Alternative fix to this would have been to link
compiler-rt.dev/include/*.txt to the wrappers resource-root/share as
well, but since this was handled inconsistently across the patch anyways
(the dfsan list is installed correctly), opt to handle this
consistently within the patch.

llvmPackages_{5,6} install the resource files to a completely different
location and need separate investigation.
2021-05-15 18:35:43 +02:00
..
bintools llvmPackages_12: Create subdirectories for the last two packages 2021-04-24 11:43:29 +02:00
clang llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
compiler-rt llvmPackages_{7-12}.compiler-rt: install resource files to DATADIR 2021-05-15 18:35:43 +02:00
libcxx llvmPackages_12: Always use the attribute name for pname 2021-04-24 11:43:29 +02:00
libcxxabi llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
libunwind llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
lld llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
lldb llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
llvm llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
openmp llvmPackages_12: Create subdirectories for the last two packages 2021-04-24 11:43:29 +02:00
default.nix Merge #122044: compiler-rt: Fix build by passing resource dir 2021-05-12 22:55:14 +02:00