diff options
author | Johannes Schickel | 2010-09-05 23:17:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-09-05 23:17:52 +0000 |
commit | f51c3ad62e5ea1ef2f3d0695065e0aab17f7e3fd (patch) | |
tree | 9b45d86cdf9bb0824eeef93c9cf93fe036f5f718 | |
parent | fddb0f6c1536d3e75223740de64c552e5d480433 (diff) | |
download | scummvm-rg350-f51c3ad62e5ea1ef2f3d0695065e0aab17f7e3fd.tar.gz scummvm-rg350-f51c3ad62e5ea1ef2f3d0695065e0aab17f7e3fd.tar.bz2 scummvm-rg350-f51c3ad62e5ea1ef2f3d0695065e0aab17f7e3fd.zip |
BUILD: Don't pass -fcheck-new to clang.
svn-id: r52582
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -34,8 +34,14 @@ ifeq "$(HAVE_GCC)" "1" # being helpful. #CXXFLAGS+= -Wmissing-format-attribute - # Disable RTTI and exceptions, and enable checking of pointers returned by "new" - CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new + # Disable RTTI and exceptions + 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 ifeq "$(HAVE_CLANG)" "1" |