Unverified Commit 210ebc21 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

llvmPackages.lldb: combine `out` and `lib` outputs on Darwin

LLDB expects to find the location of `bin` relative to `lib`. Patching
it to know the location would cause a cycle between the `out` output and
the `lib` output, so combine the two on Darwin.

Fixes https://github.com/NixOS/nixpkgs/issues/252838.
parent dd1e778b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -50,7 +50,9 @@ stdenv.mkDerivation (rec {
  src = src';
  inherit patches;

  outputs = [ "out" "lib" "dev" ];
  # LLDB expects to find the path to `bin` relative to `lib` on Darwin. It can’t be patched with the location of
  # the `lib` output because that would create a cycle between it and the `out` output.
  outputs = [ "out" "dev" ] ++ lib.optionals (!stdenv.isDarwin) [ "lib" ];

  sourceRoot = lib.optional (lib.versionAtLeast release_version "13") "${src.name}/${pname}";