change the optimition level to make it work with updated llvm pass
[c11concurrency-benchmarks.git] / mabain / src / Makefile
index 10bee15c2d2701795490fa0581de37790a96ce3f..93d39850441fc42ff1f2654c98a6fbb3e6c02a5f 100644 (file)
@@ -3,10 +3,10 @@ TARGET=libmabain.so
 
 all: $(TARGET)
 
-CFLAGS  = -I. -I.. -Iutil -Wall -Werror -c -Wwrite-strings -Wsign-compare -Wcast-align -Wformat-security -fdiagnostics-show-option
-CFLAGS += -g -ggdb -fPIC -O2 -std=c++11
+CFLAGS  = -Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -I. -I.. -Iutil -Wall -Werror -c -Wwrite-strings -Wsign-compare -Wcast-align -Wformat-security -fdiagnostics-show-option
+CFLAGS += -g -ggdb -fPIC -O1 -std=c++11
 CFLAGS += -D__SHM_LOCK__ -D__LOCK_FREE__ -D__SHM_QUEUE__
-LDFLAGS = -lpthread
+LDFLAGS = -pthread
 
 SOURCES = $(wildcard *.cpp) $(wildcard util/*.cpp)
 HEADERS = $(wildcard *.h) $(wildcard util/*.h)