diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-03-28 10:12:11 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-03-28 11:15:29 +0900 |
| commit | 589713bcb5cf4b52278a2cd6074d37c897dc79fc (patch) | |
| tree | dc860cda2a054777208a56953e1bb7403befe98a /template | |
| parent | e652af18816ffe0b85109b8de0827349bf03f16d (diff) | |
Ignore to build C extension for test files of bundled gems
Diffstat (limited to 'template')
| -rw-r--r-- | template/configure-ext.mk.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/template/configure-ext.mk.tmpl b/template/configure-ext.mk.tmpl index bc192a37ce..cabdb652fd 100644 --- a/template/configure-ext.mk.tmpl +++ b/template/configure-ext.mk.tmpl @@ -33,7 +33,9 @@ gems: % exts.each do |t, (o, dirs)| % dirs.each do |d| -% next if Dir.glob("#{srcdir}/#{d}/**/extconf.rb").empty? +% extconf = Dir.glob("#{srcdir}/#{d}/**/extconf.rb") +% next if extconf.empty? +% next if extconf.any?{|f| f.include?(".bundle/gems") && f.include?("test") } <%=t%>: <%=d%>/exts.mk <%=d%>/exts.mk: FORCE $(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make='$(MAKE)' \ |
