From: weiyu Date: Mon, 17 Jun 2019 19:23:45 +0000 (-0700) Subject: change the optimition level to make it work with updated llvm pass X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11concurrency-benchmarks.git;a=commitdiff_plain;h=e6990e6549277f6415536f7584bda1b584e194b7 change the optimition level to make it work with updated llvm pass --- diff --git a/mabain/examples/fuzzer_test/Makefile b/mabain/examples/fuzzer_test/Makefile index 0341816..41bb6a5 100644 --- a/mabain/examples/fuzzer_test/Makefile +++ b/mabain/examples/fuzzer_test/Makefile @@ -12,7 +12,7 @@ all: mb_insert_test mb_lookup_test mb_longest_prefix_test \ mb_rc_test mb_multi_thread_insert_test mb_memory_only_test CLANGFLAGS = -Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -CFLAGS = -I. -I$(MABAIN_INSTALL_DIR)/include -Wall -Werror -g -O0 -c -std=c++11 +CFLAGS = -I. -I$(MABAIN_INSTALL_DIR)/include -Wall -Werror -g -O1 -c -std=c++11 LDFLAGS = -L$(CDS_DIR) -lmodel -lpthread -lcrypto -L$(MABAIN_INSTALL_DIR)/lib -lmabain mb_insert_test: $(BASE_DIR)/mb_insert_test.cpp diff --git a/mabain/src/Makefile b/mabain/src/Makefile index 10bee15..93d3985 100644 --- a/mabain/src/Makefile +++ b/mabain/src/Makefile @@ -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)