When compiling debugging builds with clang, enable -fcatch-undefined-behavior.

git-svn-id: https://svn.eduke32.com/eduke32@2160 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-12-09 19:09:00 +00:00
parent 6dc17eec1b
commit d806bc9fea

View file

@ -89,6 +89,9 @@ ifneq (0,$(RELEASE))
else
# Debugging enabled
debug=-ggdb -O0 -DDEBUGGINGAIDS
ifeq ($(CC),clang)
debug+= -fcatch-undefined-behavior
endif
ifeq ($(PLATFORM),LINUX)
LIBS+=-rdynamic
endif