Switch examples on Unix from using g++ to clang++

This commit is contained in:
Dmitry Babokin
2013-10-09 14:05:19 +04:00
parent 8297edd251
commit 99df2d9dbf
3 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
CXX=g++ -m64 CXX=clang++ -m64
CXXFLAGS=-Iobjs/ -g3 -Wall CXXFLAGS=-Iobjs/ -g3 -Wall
ISPC=ispc ISPC=ispc
ISPCFLAGS=-O2 --instrument --arch=x86-64 --target=sse2 ISPCFLAGS=-O2 --instrument --arch=x86-64 --target=sse2

View File

@@ -3,14 +3,14 @@ TASK_CXX=../tasksys.cpp
TASK_LIB=-lpthread TASK_LIB=-lpthread
TASK_OBJ=objs/tasksys.o TASK_OBJ=objs/tasksys.o
CXX=g++ CXX=clang++
CXXFLAGS=-Iobjs/ -O2 CXXFLAGS+=-Iobjs/ -O2
CC=gcc CC=clang
CCFLAGS=-Iobjs/ -O2 CCFLAGS+=-Iobjs/ -O2
LIBS=-lm $(TASK_LIB) -lstdc++ LIBS=-lm $(TASK_LIB) -lstdc++
ISPC=ispc ISPC=ispc
ISPC_FLAGS=-O2 ISPC_FLAGS+=-O2
ISPC_HEADER=objs/$(ISPC_SRC:.ispc=_ispc.h) ISPC_HEADER=objs/$(ISPC_SRC:.ispc=_ispc.h)
ARCH:=$(shell uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/arm.*/arm/ -e s/sa110/arm/) ARCH:=$(shell uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/arm.*/arm/ -e s/sa110/arm/)

View File

@@ -1,5 +1,5 @@
CXX=g++ -m64 CXX=clang++ -m64
CXXFLAGS=-Iobjs/ -O3 -Wall CXXFLAGS=-Iobjs/ -O3 -Wall
ISPC=ispc ISPC=ispc
ISPCFLAGS=-O2 --arch=x86-64 --target=sse2 ISPCFLAGS=-O2 --arch=x86-64 --target=sse2