Commit e2759524

e27595249e27Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 184 files · +157 added · ~27 modified

Description

Merge remote-tracking branch 'origin/master' into neidiom/master

Conflicts:

spinel_parse.c

Details

Commit
e27595249e27
Parent
156e96d1885a
Merge parent
2b8469d00ebc

MakefilemodifiedView file

@@ -272,9 +272,17 @@
272272 @mkdir -p build
273273 $(CC) -c -O2 -Wno-all $(SEC_FLAGS) -Ilib lib/sp_crypto.c -o build/sp_crypto.o
274274
275+build/sp_pack.o: lib/sp_pack.c lib/mruby_shim.h
276+ @mkdir -p build
277+ $(CC) -c -O2 -Wno-all $(SEC_FLAGS) -Ilib lib/sp_pack.c -o build/sp_pack.o
278+
279+build/sp_strscan.o: lib/sp_strscan.c lib/mruby_shim.h
280+ @mkdir -p build
281+ $(CC) -c -O2 -Wno-all $(SEC_FLAGS) -Ilib -Ilib/regexp lib/sp_strscan.c -o build/sp_strscan.o
282+
275283 SP_RT_LIB = lib/libspinel_rt.a
276284
277-$(SP_RT_LIB): $(RE_OBJ) build/sp_bigint.o build/sp_crypto.o
285+$(SP_RT_LIB): $(RE_OBJ) build/sp_bigint.o build/sp_crypto.o build/sp_pack.o build/sp_strscan.o
278286 ar rcs $@ $^
279287
280288 regexp: $(SP_RT_LIB)
@@ -476,13 +484,21 @@
476484 regen-expected: $(EXPECTED_FILES)
477485
478486 test/%.rb.expected: test/%.rb
479- @$(TIMEOUT10) $(REF_RUBY) $< >[email protected] 2>/dev/null; \
487+ @args=""; \
488+ if [ -f "$<.args" ]; then args=$$(cat "$<.args"); fi; \
489+ $(TIMEOUT10) $(REF_RUBY) $< $$args >[email protected] 2>/dev/null; \
480490 rc=$$?; \
481491 if [ $$rc -ne 0 ] && [ "$(REF_RUBY)" != "ruby" ]; then \
482- $(TIMEOUT10) ruby $< >[email protected] 2>/dev/null; \
492+ $(TIMEOUT10) ruby $< $$args >[email protected] 2>/dev/null; \
493+ rc=$$?; \
483494 fi; \
484- LC_ALL=C sed 's/\r$$//' [email protected] > $@; \
495+ if [ $$rc -ne 0 ]; then \
496+ echo "regen-expected: $< failed (rc=$$rc); skipping" >&2; \
497+ rm -f [email protected]; \
498+ else \
499+ LC_ALL=C sed 's/\r$$//' [email protected] > $@; \
500+ rm -f [email protected]; \
501+ fi
486502
487503 bench: spinel_parse$(EXE) $(SP_RT_LIB) spinel_analyze$(EXE) spinel_codegen$(EXE)
488504 @if [ -z "$(TIMEOUT_BIN)" ]; then echo "Note: no 'timeout' command found; running without time limits."; fi