HomeFreeBSD

llvm: add a build knob for enabling assertions

Description

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.

Reviewed by: dim, emaste, re (gjb)
MFC after: 1 week
MFC note: flip the default of LLVM_ASSERTIONS
Differential Revision: https://reviews.freebsd.org/D24264

Details

Provenance
kevansAuthored on
Reviewer
dim
Differential Revision
D24264: llvm: add a build knob for enabling assertions
Parents
rS359643: Change the xid for client side krpc over UDP to a global value.
Branches
Unknown
Tags
Unknown