summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2013-05-25 10:32:04 -0700
committerJosh Haberman <jhaberman@gmail.com>2013-05-25 10:32:04 -0700
commitc70a75429626a85f9fe4975fabaddbb75a39f79f (patch)
tree60b29a508cf05411ee2353c49c6bb14098c32bf3 /Makefile
parent90bb4246c34580eb6c8a5a41a4e19fcd5f334f09 (diff)
parent622481990b17bed5e6fd69a1cab5d5f20413be79 (diff)
Merge branch 'master' of github.com:haberman/upb
Conflicts: upb/google/proto2.cc upb/handlers.h
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4f8bf2e..419eada 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ CXXFLAGS=-Ibindings/cpp
INCLUDE=-Itests -I.
CPPFLAGS=$(INCLUDE) -Wall -Wextra -Wno-sign-compare $(USER_CFLAGS)
LDLIBS=-lpthread upb/libupb.a
-LUA=lua5.1 # 5.1 and 5.2 should both be supported
+LUA=lua # 5.1 and 5.2 should both be supported
# Build with "make Q=" to see all commands that are being executed.
Q=@
@@ -102,9 +102,10 @@ CORE= \
PB= \
upb/pb/decoder.c \
upb/pb/glue.c \
- upb/pb/textprinter.c \
upb/pb/varint.c \
+ #upb/pb/textprinter.c \
+
# Rules. #######################################################################
@@ -173,7 +174,7 @@ upb/def.lo: upb/def.c
upb/pb/decoder_x64.h: upb/pb/decoder_x64.dasc
$(E) DYNASM $<
- $(Q) $(LUA) dynasm/dynasm.lua upb/pb/decoder_x64.dasc > upb/pb/decoder_x64.h
+ $(Q) $(LUA) dynasm/dynasm.lua upb/pb/decoder_x64.dasc > upb/pb/decoder_x64.h || (rm upb/pb/decoder_x64.h ; false)
ifneq ($(shell uname), Darwin)
upb/pb/jit_debug_elf_file.o: upb/pb/jit_debug_elf_file.s
@@ -248,7 +249,8 @@ $(SIMPLE_CXX_TESTS): % : %.cc
$(E) CXX $<
$(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ tests/testmain.o $< $(LIBUPB)
-VALGRIND=valgrind --leak-check=full --error-exitcode=1
+#VALGRIND=valgrind --leak-check=full --error-exitcode=1 --track-origins=yes
+VALGRIND=
test: tests
@echo Running all tests under valgrind.
@set -e # Abort on error.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback