Merge pull request #155462 from veprbl/pr/libcxx_12_no_apple_availability

llvmPackages_{12,13,git}: don't try to patch non-existing _LIBCPP_USE_AVAILABILITY_APPLE

authored by Dmitry Kalinkin and committed by GitHub 46244fa2 6ae3c24e

-18
-6
pkgs/development/compilers/llvm/12/libcxx/default.nix
··· 23 23 ../../libcxx-0001-musl-hacks.patch 24 24 ]; 25 25 26 - # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz" 27 - postPatch = '' 28 - substituteInPlace include/__config \ 29 - --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" "" 30 - ''; 31 - 32 26 preConfigure = lib.optionalString stdenv.hostPlatform.isMusl '' 33 27 patchShebangs utils/cat_files.py 34 28 '';
-6
pkgs/development/compilers/llvm/13/libcxx/default.nix
··· 25 25 ../../libcxx-0001-musl-hacks.patch 26 26 ]; 27 27 28 - # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz" 29 - postPatch = '' 30 - substituteInPlace include/__config \ 31 - --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" "" 32 - ''; 33 - 34 28 preConfigure = lib.optionalString stdenv.hostPlatform.isMusl '' 35 29 patchShebangs utils/cat_files.py 36 30 '';
-6
pkgs/development/compilers/llvm/git/libcxx/default.nix
··· 25 25 ../../libcxx-0001-musl-hacks.patch 26 26 ]; 27 27 28 - # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz" 29 - postPatch = '' 30 - substituteInPlace include/__config \ 31 - --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" "" 32 - ''; 33 - 34 28 preConfigure = lib.optionalString stdenv.hostPlatform.isMusl '' 35 29 patchShebangs utils/cat_files.py 36 30 '';