summaryrefslogtreecommitdiffstats
path: root/pkgs/development/rocm-modules/6/llvm/stage-3/lldb.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/rocm-modules/6/llvm/stage-3/lldb.nix')
-rw-r--r--pkgs/development/rocm-modules/6/llvm/stage-3/lldb.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/rocm-modules/6/llvm/stage-3/lldb.nix b/pkgs/development/rocm-modules/6/llvm/stage-3/lldb.nix
new file mode 100644
index 000000000000..9b7d25e06d9d
--- /dev/null
+++ b/pkgs/development/rocm-modules/6/llvm/stage-3/lldb.nix
@@ -0,0 +1,39 @@
+{ stdenv
+, callPackage
+, rocmUpdateScript
+, clang
+, xz
+, swig
+, lua5_3
+, graphviz
+, gtest
+, python3Packages
+}:
+
+callPackage ../base.nix rec {
+ inherit stdenv rocmUpdateScript;
+ buildTests = false; # FIXME: Bad pathing for clang executable in tests, using relative path most likely
+ targetName = "lldb";
+ targetDir = targetName;
+ extraNativeBuildInputs = [ python3Packages.sphinx-automodapi ];
+
+ extraBuildInputs = [
+ xz
+ swig
+ lua5_3
+ graphviz
+ gtest
+ ];
+
+ extraCMakeFlags = [
+ "-DLLDB_EXTERNAL_CLANG_RESOURCE_DIR=${clang}/resource-root/lib/clang/$clang_version"
+ "-DLLDB_INCLUDE_TESTS=ON"
+ "-DLLDB_INCLUDE_UNITTESTS=ON"
+ ];
+
+ extraPostPatch = ''
+ export clang_version=`clang -v 2>&1 | grep "clang version " | grep -E -o "[0-9.-]+"`
+ '';
+
+ checkTargets = [ "check-${targetName}" ];
+}