Page MenuHomeFreeBSD

D24264.id70127.diff
No OneTemporary

D24264.id70127.diff

Index: lib/clang/llvm.build.mk
===================================================================
--- lib/clang/llvm.build.mk
+++ lib/clang/llvm.build.mk
@@ -22,7 +22,9 @@
CFLAGS+= -D__STDC_FORMAT_MACROS
CFLAGS+= -D__STDC_LIMIT_MACROS
CFLAGS+= -DHAVE_VCS_VERSION_INC
-#CFLAGS+= -DNDEBUG
+.if ${MK_LLVM_DEBUG} == "no"
+CFLAGS+= -DNDEBUG
+.endif
TARGET_ARCH?= ${MACHINE_ARCH}
BUILD_ARCH?= ${MACHINE_ARCH}
Index: share/mk/src.opts.mk
===================================================================
--- share/mk/src.opts.mk
+++ share/mk/src.opts.mk
@@ -134,6 +134,7 @@
LLD_BOOTSTRAP \
LLD_IS_LD \
LLVM_COV \
+ LLVM_DEBUG \
LLVM_TARGET_ALL \
LOADER_GELI \
LOADER_LUA \
Index: tools/build/options/WITHOUT_LLVM_DEBUG
===================================================================
--- /dev/null
+++ tools/build/options/WITHOUT_LLVM_DEBUG
@@ -0,0 +1,2 @@
+.\" $FreeBSD$
+Set to disable debugging assertions in LLVM.
Index: tools/build/options/WITH_LLVM_DEBUG
===================================================================
--- /dev/null
+++ tools/build/options/WITH_LLVM_DEBUG
@@ -0,0 +1,2 @@
+.\" $FreeBSD$
+Set to enable debugging assertions in LLVM.

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 11:11 AM (12 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604128
Default Alt Text
D24264.id70127.diff (1 KB)

Event Timeline