removed duplicatees in Makefile
This commit is contained in:
15
Makefile
15
Makefile
@@ -113,11 +113,9 @@ ifeq ($(LLVM_VERSION),LLVM_3_4)
|
|||||||
ISPC_LIBS += -lcurses
|
ISPC_LIBS += -lcurses
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(LLVM_VERSION),LLVM_3_5)
|
# There is no logical OR in GNU make.
|
||||||
ISPC_LIBS += -lcurses -lz
|
# This 'ifneq' acts like if($(LLVM_VERSION) == LLVM_3_5 || $(LLVM_VERSION) == LLVM_3_6)
|
||||||
endif
|
ifneq (,$(filter $(LLVM_VERSION), LLVM_3_5 LLVM_3_6))
|
||||||
|
|
||||||
ifeq ($(LLVM_VERSION),LLVM_3_6)
|
|
||||||
ISPC_LIBS += -lcurses -lz
|
ISPC_LIBS += -lcurses -lz
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -154,10 +152,9 @@ CXXFLAGS=$(OPT) $(LLVM_CXXFLAGS) -I. -Iobjs/ -I$(CLANG_INCLUDE) \
|
|||||||
-Wall \
|
-Wall \
|
||||||
-DBUILD_DATE="\"$(BUILD_DATE)\"" -DBUILD_VERSION="\"$(BUILD_VERSION)\"" \
|
-DBUILD_DATE="\"$(BUILD_DATE)\"" -DBUILD_VERSION="\"$(BUILD_VERSION)\"" \
|
||||||
-Wno-sign-compare -Wno-unused-function -Werror
|
-Wno-sign-compare -Wno-unused-function -Werror
|
||||||
ifeq ($(LLVM_VERSION),LLVM_3_5)
|
|
||||||
CXXFLAGS+=-std=c++11 -Wno-c99-extensions -Wno-deprecated-register
|
# if($(LLVM_VERSION) == LLVM_3_5 || $(LLVM_VERSION) == LLVM_3_6)
|
||||||
endif
|
ifneq (,$(filter $(LLVM_VERSION), LLVM_3_5 LLVM_3_6))
|
||||||
ifeq ($(LLVM_VERSION),LLVM_3_6)
|
|
||||||
CXXFLAGS+=-std=c++11 -Wno-c99-extensions -Wno-deprecated-register
|
CXXFLAGS+=-std=c++11 -Wno-c99-extensions -Wno-deprecated-register
|
||||||
endif
|
endif
|
||||||
ifneq ($(ARM_ENABLED), 0)
|
ifneq ($(ARM_ENABLED), 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user