aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-02-11 19:02:51 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-02-16 23:15:32 +0000
commit73ff7384e025033abc98fd5437a48beb8077a90b (patch)
tree4cfe3c1e234f1026f2012a0e46f96b73526293b9 /tools
parent5b5f7d0e77a9eee73eb5d596f43aef4e1a3674d8 (diff)
downloadsrc-73ff7384e025033abc98fd5437a48beb8077a90b.tar.gz
src-73ff7384e025033abc98fd5437a48beb8077a90b.zip
Optionally create full debuginfo for llvm-related executables
Commit de6feefdb7cfd limited the amount of debuginfo generated for clang and other llvm-related executables. This was done to save disk space and memory during building, but it makes debugging any of these executables much harder. Add a new src.conf(5) setting, WITH_LLVM_FULL_DEBUGINFO, to generate full debuginfo instead. This is off by default, but could for example be enabled for release builds or snapshots, so llvm executables are easier to debug. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43839
Diffstat (limited to 'tools')
-rw-r--r--tools/build/options/WITH_LLVM_FULL_DEBUGINFO2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/build/options/WITH_LLVM_FULL_DEBUGINFO b/tools/build/options/WITH_LLVM_FULL_DEBUGINFO
new file mode 100644
index 000000000000..4362de9eb762
--- /dev/null
+++ b/tools/build/options/WITH_LLVM_FULL_DEBUGINFO
@@ -0,0 +1,2 @@
+Generate full debug information for LLVM libraries and tools, which uses
+more disk space and build resources, but allows for easier debugging.