From 320b1700ff2c6f791d8477223f3d799a875089b5 Mon Sep 17 00:00:00 2001 From: Ilia Filippov Date: Fri, 30 Aug 2013 16:01:01 +0400 Subject: [PATCH] correction of adding -Werror option --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d27cc80..09ec302d 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,10 @@ CXXFLAGS=$(OPT) $(LLVM_CXXFLAGS) -I. -Iobjs/ -I$(CLANG_INCLUDE) \ $(LLVM_VERSION_DEF) \ -Wall \ -DBUILD_DATE="\"$(BUILD_DATE)\"" -DBUILD_VERSION="\"$(BUILD_VERSION)\"" \ - -Werror -Wno-sign-compare + -Wno-sign-compare +ifneq ($(LLVM_VERSION),LLVM_3_1) + CXXFLAGS+=-Werror +endif ifneq ($(ARM_ENABLED), 0) CXXFLAGS+=-DISPC_ARM_ENABLED endif