]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r359644: llvm: add a build knob for enabling assertions
authorKyle Evans <kevans@FreeBSD.org>
Thu, 9 Apr 2020 15:58:06 +0000 (15:58 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 9 Apr 2020 15:58:06 +0000 (15:58 +0000)
commit13c87252da534cd62d8dee65466cef1f948f2637
treebcdbd09a28080a5eece733891820be92bff68698
parent18dbdc865664d421226536d05f29aab5bad713d6
MFC r359644: llvm: add a build knob for enabling assertions

For head/, this will remain eternally default-on to maintain the status quo.
For stable/ branches, it should be flipped to default-off to maintain the
status quo.

There's value in being able to flip it one way or the other easily on head
or stable branches, whether you want to gain some performance back on head/
(for machines there's little chance you'll actually hit an assertion) or
potentially diagnose a problem with the version of llvm on an older branch.

Currently, stable branches get the CFLAGS+= -ndebug line uncommented; going
forward, they will instead have the default of LLVM_ASSERTIONS flipped.

[MFC note: that last comment just happened for these two branches]
lib/clang/llvm.build.mk
share/mk/src.opts.mk
tools/build/options/WITHOUT_LLVM_ASSERTIONS [new file with mode: 0644]
tools/build/options/WITH_LLVM_ASSERTIONS [new file with mode: 0644]