Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106103402
D24264.id70127.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24264.id70127.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D24264: llvm: add a build knob for enabling assertions
Attached
Detach File
Event Timeline
Log In to Comment