mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
llvmPackages_{12,13,git}: don't try to patch non-existing _LIBCPP_USE_AVAILABILITY_APPLE
substituteStream(): WARNING: pattern '# define _LIBCPP_USE_AVAILABILITY_APPLE' doesn't match anything in file 'include/__config' The new mechanism for those is a cmake option LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS that is off by default: https://reviews.llvm.org/D90843
This commit is contained in:
parent
4cb2e26459
commit
34523e76a2
3 changed files with 0 additions and 18 deletions
|
@ -25,12 +25,6 @@ stdenv.mkDerivation rec {
|
|||
../../libcxx-0001-musl-hacks.patch
|
||||
];
|
||||
|
||||
# Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz"
|
||||
postPatch = ''
|
||||
substituteInPlace include/__config \
|
||||
--replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" ""
|
||||
'';
|
||||
|
||||
preConfigure = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
patchShebangs utils/cat_files.py
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue