From bee30297640f43808d41c801bebf782789731983 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Thu, 21 Feb 2013 17:26:21 +0400 Subject: [PATCH] Adding debug and clang targets, changing asan target --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ebfe22d3..1b13d2e0 100644 --- a/Makefile +++ b/Makefile @@ -134,12 +134,18 @@ ispc: print_llvm_src dirs $(OBJS) @echo Creating ispc executable @$(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 # Note that this is not portable build -asan: ispc -asan: CXX=clang++ +asan: clang asan: OPT+=-fsanitize=address +# Do debug build, i.e. -O0 -g +debug: ispc +debug: OPT=-O0 -g objs/%.o: %.cpp @echo Compiling $<