Module Name: src Committed By: joerg Date: Mon Feb 28 16:30:10 UTC 2022
Modified Files: src/external/apache2/llvm: Makefile.inc Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/apache2/llvm/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/apache2/llvm/Makefile.inc diff -u src/external/apache2/llvm/Makefile.inc:1.5 src/external/apache2/llvm/Makefile.inc:1.6 --- src/external/apache2/llvm/Makefile.inc:1.5 Sun May 30 01:56:45 2021 +++ src/external/apache2/llvm/Makefile.inc Mon Feb 28 16:30:10 2022 @@ -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 @@ LLVM_TARGETS= x86,powerpc,sparc,aarch64, 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