···2020, Cocoa
2121, lit
2222, makeWrapper
2323+, darwin
2324, enableManpages ? false
2425}:
2526···3839 substitute '${./resource-dir.patch}' "$out" --subst-var clangLibDir
3940 '')
4041 ./gnu-install-dirs.patch
4141- ];
4242+ ]
4343+ # This is a stopgap solution if/until the macOS SDK used for x86_64 is
4444+ # updated.
4545+ #
4646+ # The older 10.12 SDK used on x86_64 as of this writing has a `mach/machine.h`
4747+ # header that does not define `CPU_SUBTYPE_ARM64E` so we replace the one use
4848+ # of this preprocessor symbol in `lldb` with its expansion.
4949+ #
5050+ # See here for some context:
5151+ # https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132
5252+ ++ lib.optional (
5353+ stdenv.targetPlatform.isDarwin
5454+ && !stdenv.targetPlatform.isAarch64
5555+ && (lib.versionOlder darwin.apple_sdk.sdk.version "11.0")
5656+ ) ./cpu_subtype_arm64e_replacement.patch;
5757+42584359 outputs = [ "out" "lib" "dev" ];
4460···102118 '';
103119104120 meta = llvm_meta // {
105105- broken = stdenv.isDarwin;
106121 homepage = "https://lldb.llvm.org/";
107122 description = "A next-generation high-performance debugger";
108123 longDescription = ''
···2020, Cocoa
2121, lit
2222, makeWrapper
2323+, darwin
2324, enableManpages ? false
2425, lua5_3
2526}:
···4445 substitute '${./resource-dir.patch}' "$out" --subst-var clangLibDir
4546 '')
4647 ./gnu-install-dirs.patch
4747- ];
4848+ ]
4949+ # This is a stopgap solution if/until the macOS SDK used for x86_64 is
5050+ # updated.
5151+ #
5252+ # The older 10.12 SDK used on x86_64 as of this writing has a `mach/machine.h`
5353+ # header that does not define `CPU_SUBTYPE_ARM64E` so we replace the one use
5454+ # of this preprocessor symbol in `lldb` with its expansion.
5555+ #
5656+ # See here for some context:
5757+ # https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132
5858+ ++ lib.optional (
5959+ stdenv.targetPlatform.isDarwin
6060+ && !stdenv.targetPlatform.isAarch64
6161+ && (lib.versionOlder darwin.apple_sdk.sdk.version "11.0")
6262+ ) ./cpu_subtype_arm64e_replacement.patch;
48634964 outputs = [ "out" "lib" "dev" ];
5065···116131 larger LLVM Project, such as the Clang expression parser and LLVM
117132 disassembler.
118133 '';
119119- broken = stdenv.isDarwin; # error: use of undeclared identifier 'CPU_SUBTYPE_ARM64E'
120134 };
121135} // lib.optionalAttrs enableManpages {
122136 pname = "lldb-manpages";