Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/llvm When MKDEBUG is use, build LLVM with -...



details:   https://anonhg.NetBSD.org/src/rev/d73220a5aff5
branches:  trunk
changeset: 362471:d73220a5aff5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Feb 28 16:30:10 2022 +0000

description:
When MKDEBUG is use, build LLVM with -g1 to significantly reduce debug
information. This still includes types and line tables, but skips e.g.
local variables and inline tracking.

diffstat:

 external/apache2/llvm/Makefile.inc |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 1c798902f12f -r d73220a5aff5 external/apache2/llvm/Makefile.inc
--- a/external/apache2/llvm/Makefile.inc        Mon Feb 28 13:49:50 2022 +0000
+++ b/external/apache2/llvm/Makefile.inc        Mon Feb 28 16:30:10 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.5 2021/05/30 01:56:45 joerg Exp $
+#      $NetBSD: Makefile.inc,v 1.6 2022/02/28 16:30:10 joerg Exp $
 
 .if !defined(LLVM_TOPLEVEL_MK)
 LLVM_TOPLEVEL_MK=
@@ -50,6 +50,9 @@
 CXXFLAGS+=             ${${ACTIVE_CC} == "clang":? ${MODULES_CXXFLAGS} :}
 
 CXXFLAGS+=     -std=c++14
+.if ${MKDEBUG:Uno} != "no"
+CXXFLAGS+=     -g1
+.endif
 CXXFLAGS+=     -fno-rtti -fno-exceptions ${${ACTIVE_CC} == "gcc" :? -fno-strict-aliasing :}
 CXXFLAGS+=     -ffunction-sections -fdata-sections
 LDFLAGS+=      -Wl,--gc-sections



Home | Main Index | Thread Index | Old Index