src.opts.mk: Default LLVM_ASSERTIONS off

This noticeably slows down the compiler execution and with the move to
pkgbase is one of the remaining differences that cannot be
administratively controlled; pkg kernels and malloc.conf(5) will allow
quickly testing a snapshot in a configuration closer to stable and
release branches.

dim@ notes that you need to set WITH_LLVM_ASSERTIONS in src.conf(5) if
you want to report an issue with LLVM.

Enabling WITH_LLVM_ASSERTIONS is also a consideration for CI and pkg
builders especially tracking main.

Approved by:	dim, kevans
Differential Revision:	https://reviews.freebsd.org/D50388
This commit is contained in:
Kevin Bowling
2025-07-27 01:00:39 -07:00
parent 92dfc3fbcd
commit 9b3055d0d4
4 changed files with 11 additions and 4 deletions
+5
View File
@@ -27,6 +27,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
world, or to merely disable the most expensive debugging functionality world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
20250727:
LLVM's debugging assertions are now disabled in main by default.
The WITH_LLVM_ASSERTIONS src.conf(5) knob should be used to
enable it when working on LLVM or requesting help with it.
20250726: 20250726:
amd64 kernel configurations must contain "options SMP". amd64 kernel configurations must contain "options SMP".
+4 -3
View File
@@ -1,5 +1,5 @@
.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
.Dd July 14, 2025 .Dd July 27, 2025
.Dt SRC.CONF 5 .Dt SRC.CONF 5
.Os .Os
.Sh NAME .Sh NAME
@@ -940,8 +940,9 @@ amd64/amd64, arm64/aarch64, i386/i386, powerpc/powerpc64 and powerpc/powerpc64le
Do not build the LLD linker during the bootstrap phase of Do not build the LLD linker during the bootstrap phase of
the build. the build.
To be able to build the system an alternate linker must be provided via XLD. To be able to build the system an alternate linker must be provided via XLD.
.It Va WITHOUT_LLVM_ASSERTIONS .It Va WITH_LLVM_ASSERTIONS
Disable debugging assertions in LLVM. Enable debugging assertions in LLVM.
Use when working on or requesting help with LLVM components.
.It Va WITHOUT_LLVM_BINUTILS .It Va WITHOUT_LLVM_BINUTILS
Install ELF Tool Chain's binary utilities instead of LLVM's. Install ELF Tool Chain's binary utilities instead of LLVM's.
This includes This includes
+1 -1
View File
@@ -123,7 +123,6 @@ __DEFAULT_YES_OPTIONS = \
LEGACY_CONSOLE \ LEGACY_CONSOLE \
LLD \ LLD \
LLD_BOOTSTRAP \ LLD_BOOTSTRAP \
LLVM_ASSERTIONS \
LLVM_BINUTILS \ LLVM_BINUTILS \
LLVM_COV \ LLVM_COV \
LLVM_CXXFILT \ LLVM_CXXFILT \
@@ -210,6 +209,7 @@ __DEFAULT_NO_OPTIONS = \
HESIOD \ HESIOD \
LOADER_VERBOSE \ LOADER_VERBOSE \
LOADER_VERIEXEC_PASS_MANIFEST \ LOADER_VERIEXEC_PASS_MANIFEST \
LLVM_ASSERTIONS \
LLVM_FULL_DEBUGINFO \ LLVM_FULL_DEBUGINFO \
MALLOC_PRODUCTION \ MALLOC_PRODUCTION \
OFED_EXTRA \ OFED_EXTRA \
+1
View File
@@ -1 +1,2 @@
Enable debugging assertions in LLVM. Enable debugging assertions in LLVM.
Use when working on or requesting help with LLVM components.