HomeFreeBSD

MFC r359644: llvm: add a build knob for enabling assertions

Description

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]

Details

Provenance
kevansAuthored on
Parents
rS359747: Bump version for r359745, since it removed a field from "struct proc" and
Branches
Unknown
Tags
Unknown