Run ASAN/TSAN jobs with clang

Bring back removed tests/Makefile
This commit is contained in:
Daniel Chabrowski
2018-08-12 18:41:39 +02:00
parent 49d663f6c8
commit 368b3699d0
2 changed files with 36 additions and 6 deletions

22
tests/Makefile Normal file
View File

@@ -0,0 +1,22 @@
CXX ?= g++
CXXFLAGS = -Wall -pedantic -std=c++11 -pthread -O3 -I../include -fmax-errors=1
LDPFALGS = -pthread
CPP_FILES := $(wildcard *.cpp)
OBJ_FILES := $(addprefix ./,$(notdir $(CPP_FILES:.cpp=.o)))
tests: $(OBJ_FILES)
$(CXX) $(CXXFLAGS) $(LDPFALGS) -o $@ $^
mkdir -p logs
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
clean:
rm -f tests *.o logs/*.txt
rebuild: clean tests