mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
lldb_{14,15,16,17,18,19}: fix x64 darwin
x64 darwin doesn't build with 10.12 sdk after the sdk refactor due to compile errors. bumping the sdk to 11 fixes the build. set min deployment target as needed for lldb_14 lldb_14 still broken but due to an unrelated issue.
This commit is contained in:
parent
fd00e32347
commit
d5a850af22
@ -24,6 +24,8 @@
|
||||
, patches ? [ ]
|
||||
, enableManpages ? false
|
||||
, devExtraCmakeFlags ? [ ]
|
||||
, apple-sdk_11
|
||||
, darwinMinVersionHook
|
||||
, ...
|
||||
}:
|
||||
|
||||
@ -90,33 +92,16 @@ stdenv.mkDerivation (rec {
|
||||
# buildInputs cc-wrapper will set up rpath correctly for us.
|
||||
(lib.getLib libclang)
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.libobjc
|
||||
darwin.apple_sdk.libs.xpc
|
||||
darwin.apple_sdk.frameworks.Foundation
|
||||
darwin.bootstrap_cmds
|
||||
darwin.apple_sdk.frameworks.Carbon
|
||||
darwin.apple_sdk.frameworks.Cocoa
|
||||
]
|
||||
# The older libSystem used on x86_64 macOS is missing the
|
||||
# `<bsm/audit_session.h>` header which `lldb` uses.
|
||||
#
|
||||
# We copy this header over from macOS 10.12 SDK.
|
||||
#
|
||||
# See here for context:
|
||||
# https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132
|
||||
++ lib.optional
|
||||
++ lib.optionals
|
||||
(
|
||||
stdenv.targetPlatform.isDarwin
|
||||
&& lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0"
|
||||
&& (lib.versionAtLeast release_version "15")
|
||||
)
|
||||
(
|
||||
runCommand "bsm-audit-session-header" { } ''
|
||||
install -Dm444 \
|
||||
"${lib.getDev darwin.apple_sdk.sdk}/include/bsm/audit_session.h" \
|
||||
"$out/include/bsm/audit_session.h"
|
||||
''
|
||||
);
|
||||
) [
|
||||
apple-sdk_11
|
||||
(darwinMinVersionHook "10.15")
|
||||
];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user