summaryrefslogtreecommitdiff
path: root/tool/update-deps
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 13:12:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 13:12:34 +0000
commitfddf7a051864d5c0cd6435198ba0be14916c9c70 (patch)
tree16aa7d1c2a507ebcbe10f35aedbf2b7dd95024f7 /tool/update-deps
parent54c979e979034d661e4c41e01be8a032e82a342b (diff)
update-deps: support coroutine dependencies
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/update-deps')
-rwxr-xr-xtool/update-deps4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/update-deps b/tool/update-deps
index f26cff26d5..2129bdba25 100755
--- a/tool/update-deps
+++ b/tool/update-deps
@@ -176,7 +176,7 @@ def in_makefile(target, source)
target = target.to_s
source = source.to_s
case target
- when %r{\A[^/]*\z}
+ when %r{\A[^/]*\z}, %r{\Acoroutine/}
target2 = "#{target.sub(/\.o\z/, '.$(OBJEXT)')}"
case source
when *FILES_IN_SOURCE_DIRECTORY then source2 = "$(top_srcdir)/#{source}"
@@ -193,6 +193,7 @@ def in_makefile(target, source)
when %r{\Amissing/} then source2 = "{$(VPATH)}#{$'}"
when %r{\Accan/} then source2 = "$(CCAN_DIR)/#{$'}"
when %r{\Adefs/} then source2 = "{$(VPATH)}#{source}"
+ when %r{\Acoroutine/} then source2 = "{$(VPATH)}$(COROUTINE_H)"
else source2 = "$(top_srcdir)/#{source}"
end
["common.mk", target2, source2]
@@ -368,6 +369,7 @@ def read_cc_deps(cwd)
Pathname.glob('**/*.o').sort.each {|fn_o|
fn_i = fn_o.sub_ext('.i')
if !fn_i.exist?
+ next if fn_o.sub_ext('.S').exist?
warn "warning: not found: #{fn_i}"
$i_not_found = true
next