Skip to content

Commit

Permalink
Merge pull request #230387 from Artturin/llvmsplit1
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Jun 20, 2023
2 parents 2fd2dc9 + d53d5a8 commit 289d9cf
Show file tree
Hide file tree
Showing 14 changed files with 242 additions and 1,002 deletions.
9 changes: 7 additions & 2 deletions pkgs/development/compilers/llvm/10/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,13 @@ let
inherit llvm_meta;
};

lldb = callPackage ./lldb {
inherit llvm_meta;
lldb = callPackage ../common/lldb.nix {
src = fetch "lldb" "051p5b04y6z3g730rmc2n2v71lipbw7k69riww3a6sl74myfiaq7";
patches = [
./lldb/procfs.patch
./lldb/gnu-install-dirs.patch
];
inherit llvm_meta release_version;
};

# Below, is the LLVM bootstrapping logic. It handles building a
Expand Down
128 changes: 0 additions & 128 deletions pkgs/development/compilers/llvm/10/lldb/default.nix

This file was deleted.

9 changes: 7 additions & 2 deletions pkgs/development/compilers/llvm/11/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,13 @@ let
inherit llvm_meta;
};

lldb = callPackage ./lldb {
inherit llvm_meta;
lldb = callPackage ../common/lldb.nix {
src = fetch "lldb" "1vlyg015dyng43xqb8cg2l6r9ix8klibxsajazbfnckdnh54hwxj";
patches = [
./lldb/procfs.patch
./lldb/gnu-install-dirs.patch
];
inherit llvm_meta release_version;
};

# Below, is the LLVM bootstrapping logic. It handles building a
Expand Down
126 changes: 0 additions & 126 deletions pkgs/development/compilers/llvm/11/lldb/default.nix

This file was deleted.

22 changes: 17 additions & 5 deletions pkgs/development/compilers/llvm/12/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,23 @@ let
inherit (libraries) libunwind;
};

lldb = callPackage ./lldb {
inherit llvm_meta;
inherit (darwin) libobjc bootstrap_cmds;
inherit (darwin.apple_sdk.libs) xpc;
inherit (darwin.apple_sdk.frameworks) Foundation Carbon Cocoa;
lldb = callPackage ../common/lldb.nix {
src = fetch "lldb" "0g3pj1m3chafavpr35r9fynm85y2hdyla6klj0h28khxs2613i78";
patches =
let
resourceDirPatch = callPackage ({ runCommand, libclang }: (runCommand "resource-dir.patch"
{
clangLibDir = "${libclang.lib}/lib";
} ''
substitute '${./lldb/resource-dir.patch}' "$out" --subst-var clangLibDir
'')) { };
in
[
./lldb/procfs.patch
resourceDirPatch
./lldb/gnu-install-dirs.patch
];
inherit llvm_meta release_version;
};

# Below, is the LLVM bootstrapping logic. It handles building a
Expand Down
Loading

0 comments on commit 289d9cf

Please sign in to comment.