зеркало из https://github.com/github/ruby.git
Moved unmatch arity check to depend file
To substitute suffixes and VPATH for nmake.
This commit is contained in:
Родитель
a3daf8e49a
Коммит
e0c56b45a4
|
@ -1,3 +1,11 @@
|
|||
$(DLLIB) $(STATIC_LIB): failure.failed
|
||||
|
||||
failure.failed: failure.cpp cxxanyargs.o
|
||||
$(Q)$(RUBY) -rfileutils \\
|
||||
-e "err = IO.popen(%[$(MAKE) failure.o], err:[:child, :out], &:read)" \\
|
||||
-e "abort err unless /rb_define_method/ =~ err" \\
|
||||
-e "FileUtils.touch(*ARGV)" $@
|
||||
|
||||
# AUTOGENERATED DEPENDENCIES START
|
||||
cxxanyargs.o: $(RUBY_EXTCONF_H)
|
||||
cxxanyargs.o: $(arch_hdrdir)/ruby/config.h
|
||||
|
|
|
@ -24,16 +24,5 @@ end
|
|||
if ok
|
||||
$srcs = %w[cxxanyargs.cpp]
|
||||
$cleanfiles << "failure.failed"
|
||||
create_makefile("-test-/cxxanyargs") do |mk|
|
||||
mk << <<MK
|
||||
|
||||
cxxanyargs.#$OBJEXT: failure.failed
|
||||
|
||||
failure.failed: failure.cpp
|
||||
\t$(Q)$(RUBY) -rfileutils \\
|
||||
\t -e "err = IO.popen(%[$(MAKE) failure.#$OBJEXT], err:[:child, :out], &:read)" \\
|
||||
\t -e "abort err unless /rb_define_method/ =~ err" \\
|
||||
\t -e "FileUtils.touch(*ARGV)" $@
|
||||
MK
|
||||
end
|
||||
create_makefile("-test-/cxxanyargs")
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче