merged with master
This commit is contained in:
12
Makefile
12
Makefile
@@ -120,7 +120,9 @@ ifeq ($(LLVM_VERSION),LLVM_3_4)
|
||||
ISPC_LIBS += -lcurses
|
||||
endif
|
||||
|
||||
ifeq ($(LLVM_VERSION),LLVM_3_5)
|
||||
# There is no logical OR in GNU make.
|
||||
# This 'ifneq' acts like if( !($(LLVM_VERSION) == LLVM_3_2 || $(LLVM_VERSION) == LLVM_3_3 || $(LLVM_VERSION) == LLVM_3_4))
|
||||
ifeq (,$(filter $(LLVM_VERSION), LLVM_3_2 LLVM_3_3 LLVM_3_4))
|
||||
ISPC_LIBS += -lcurses -lz
|
||||
endif
|
||||
|
||||
@@ -157,7 +159,9 @@ CXXFLAGS=$(OPT) $(LLVM_CXXFLAGS) -I. -Iobjs/ -I$(CLANG_INCLUDE) \
|
||||
-Wall \
|
||||
-DBUILD_DATE="\"$(BUILD_DATE)\"" -DBUILD_VERSION="\"$(BUILD_VERSION)\"" \
|
||||
-Wno-sign-compare -Wno-unused-function -Werror
|
||||
ifeq ($(LLVM_VERSION),LLVM_3_5)
|
||||
|
||||
# if( !($(LLVM_VERSION) == LLVM_3_2 || $(LLVM_VERSION) == LLVM_3_3 || $(LLVM_VERSION) == LLVM_3_4))
|
||||
ifeq (,$(filter $(LLVM_VERSION), LLVM_3_2 LLVM_3_3 LLVM_3_4))
|
||||
CXXFLAGS+=-std=c++11 -Wno-c99-extensions -Wno-deprecated-register
|
||||
endif
|
||||
ifneq ($(ARM_ENABLED), 0)
|
||||
@@ -253,9 +257,9 @@ ispc: print_llvm_src dirs $(OBJS)
|
||||
clang: ispc
|
||||
clang: CXX=clang++
|
||||
|
||||
# Use gcc as a default compiler, instead of gcc
|
||||
# Use gcc as a default compiler
|
||||
gcc: ispc
|
||||
gcc: CXX=clang++
|
||||
gcc: CXX=g++
|
||||
|
||||
# Build ispc with address sanitizer instrumentation using clang compiler
|
||||
# Note that this is not portable build
|
||||
|
||||
Reference in New Issue
Block a user