1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Check -1 arity for C++

This commit is contained in:
Nobuyoshi Nakada 2019-11-22 18:39:39 +09:00
parent f9d20a1bf1
commit a93d0a4e62
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
4 changed files with 24 additions and 6 deletions

View file

@ -1,11 +1,13 @@
$(TARGET_SO) $(STATIC_LIB): failure.failed
$(TARGET_SO) $(STATIC_LIB): $(FAILURES:.cpp=.failed)
failure.failed: failure.cpp cxxanyargs.o
.SUFFIXES: .failed
.cpp.failed:
$(Q)$(RUBY) -rfileutils \
-e "t = ARGV.shift" \
-e "err = IO.popen(ARGV, err:[:child, :out], &:read)" \
-e "abort err unless /rb_define_method/ =~ err" \
-e "FileUtils.touch(t)" $@ $(MAKE) failure.o
-e "File.write(t, err)" $@ $(MAKE) $(*F).o
# AUTOGENERATED DEPENDENCIES START
cxxanyargs.o: $(RUBY_EXTCONF_H)