From ef31fedd09f7ba16ccddeb7e9584f734ac7b082d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 20 Jan 2017 10:59:47 +0000 Subject: [PATCH] extmk.rb: ignore generated sources * ext/extmk.rb (extract_makefile): ignore generated source files not to reconfigure when in-place build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/extmk.rb b/ext/extmk.rb index 04d374ece6..dc6bd04945 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -106,7 +106,7 @@ def extract_makefile(makefile, keep = true) srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")].map {|fn| File.basename(fn)}.sort if !srcs.empty? old_srcs = m[/^ORIG_SRCS[ \t]*=[ \t](.*)/, 1] or return false - old_srcs.split.sort == srcs or return false + (old_srcs.split - srcs).empty? or return false end $target = target $extconf_h = m[/^RUBY_EXTCONF_H[ \t]*=[ \t]*(\S+)/, 1]