Skip to content

Commit c39f8c5

Browse files
ararslanKeno
andcommitted
Set NDEBUG when LLVM assertions are disabled
This a component of #36929 which happens to fix building on FreeBSD 11. Co-authored-by: Keno Fischer <[email protected]>
1 parent cb75d49 commit c39f8c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Make.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ CXX_DISABLE_ASSERTION := -DJL_NDEBUG
428428
DISABLE_ASSERTIONS := -DNDEBUG -DJL_NDEBUG
429429
endif
430430

431+
ifeq ($(LLVM_ASSERTIONS),0)
432+
CXX_DISABLE_ASSERTION += -DNDEBUG
433+
endif
434+
431435
# Compiler specific stuff
432436

433437
ifeq ($(USEMSVC), 1)

0 commit comments

Comments
 (0)