pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
potentially "fix" lldb by not building the tests by default
Module Name: pkgsrc-wip
Committed By: nikita <nikita%NetBSD.org@localhost>
Pushed By: nikita
Date: Sat Apr 29 20:55:44 2023 +0200
Changeset: a83632bab897291d3e340eed53fc9c4038402b73
Modified Files:
lldb/Makefile
Added Files:
lldb/options.mk
Log Message:
potentially "fix" lldb by not building the tests by default
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a83632bab897291d3e340eed53fc9c4038402b73
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lldb/Makefile | 2 ++
lldb/options.mk | 13 +++++++++++++
2 files changed, 15 insertions(+)
diffs:
diff --git a/lldb/Makefile b/lldb/Makefile
index 68d233e826..ce739ad76e 100644
--- a/lldb/Makefile
+++ b/lldb/Makefile
@@ -70,6 +70,8 @@ CMAKE_ARGS+= -DLLDB_DISABLE_CURSES:BOOL=FALSE
CMAKE_ARGS+= -DLLDB_DISABLE_CURSES:BOOL=TRUE
. endif
+.include "options.mk"
+
. if ${OPSYS_VERSION} < 99922
# lacks ptrace(2) PT_STOP
PKG_FAIL_REASON+= "Only NetBSD >= 9.99.22 provides ptrace(2) PT_STOP"
diff --git a/lldb/options.mk b/lldb/options.mk
new file mode 100644
index 0000000000..d7480d6ee1
--- /dev/null
+++ b/lldb/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.lldb
+
+PKG_SUPPORTED_OPTIONS+= tests
+
+.include "../../mk/bsd.options.mk"
+
+.if ${PKG_OPTIONS:Mtests}
+CMAKE_ARGS+= -DLLVM_INCLUDE_TESTS=ON
+.else
+CMAKE_ARGS+= -DLLVM_INCLUDE_TESTS=OFF
+.endif
Home |
Main Index |
Thread Index |
Old Index