Adding debug and clang targets, changing asan target
This commit is contained in:
10
Makefile
10
Makefile
@@ -134,12 +134,18 @@ ispc: print_llvm_src dirs $(OBJS)
|
|||||||
@echo Creating ispc executable
|
@echo Creating ispc executable
|
||||||
@$(CXX) $(OPT) $(LDFLAGS) -o $@ $(OBJS) $(ISPC_LIBS)
|
@$(CXX) $(OPT) $(LDFLAGS) -o $@ $(OBJS) $(ISPC_LIBS)
|
||||||
|
|
||||||
|
# Use clang as a default compiler, instead of gcc
|
||||||
|
clang: ispc
|
||||||
|
clang: CXX=clang++
|
||||||
|
|
||||||
# Build ispc with address sanitizer instrumentation using clang compiler
|
# Build ispc with address sanitizer instrumentation using clang compiler
|
||||||
# Note that this is not portable build
|
# Note that this is not portable build
|
||||||
asan: ispc
|
asan: clang
|
||||||
asan: CXX=clang++
|
|
||||||
asan: OPT+=-fsanitize=address
|
asan: OPT+=-fsanitize=address
|
||||||
|
|
||||||
|
# Do debug build, i.e. -O0 -g
|
||||||
|
debug: ispc
|
||||||
|
debug: OPT=-O0 -g
|
||||||
|
|
||||||
objs/%.o: %.cpp
|
objs/%.o: %.cpp
|
||||||
@echo Compiling $<
|
@echo Compiling $<
|
||||||
|
|||||||
Reference in New Issue
Block a user