BUILD: Don't pass -fcheck-new to clang.
svn-id: r52582
This commit is contained in:
parent
fddb0f6c15
commit
f51c3ad62e
1 changed files with 8 additions and 2 deletions
10
Makefile
10
Makefile
|
@ -34,8 +34,14 @@ ifeq "$(HAVE_GCC)" "1"
|
||||||
# being helpful.
|
# being helpful.
|
||||||
#CXXFLAGS+= -Wmissing-format-attribute
|
#CXXFLAGS+= -Wmissing-format-attribute
|
||||||
|
|
||||||
# Disable RTTI and exceptions, and enable checking of pointers returned by "new"
|
# Disable RTTI and exceptions
|
||||||
CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new
|
CXXFLAGS+= -fno-rtti -fno-exceptions
|
||||||
|
|
||||||
|
ifneq "$(HAVE_CLANG)" "1"
|
||||||
|
# enable checking of pointers returned by "new", but only when we do not
|
||||||
|
# build with clang
|
||||||
|
CXXFLAGS+= -fcheck-new
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq "$(HAVE_CLANG)" "1"
|
ifeq "$(HAVE_CLANG)" "1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue