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

Retrieve previously configured macros also other than extensions

This commit is contained in:
Nobuyoshi Nakada 2022-04-07 15:03:24 +09:00
parent 5af507f527
commit 21f006f5f7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -30,7 +30,6 @@ Dir.glob("{ext,.bundle/gems}/*/exts.mk") do |e|
s.scan(/^(extensions|SUBMAKEOPTS|EXT[A-Z]+|MFLAGS|NOTE_[A-Z]+)[ \t]*=[ \t]*(#{contpat})$/o) do |n, v|
v.gsub!(/\\\n[ \t]*/, ' ')
next if v.empty?
next if n != "extensions"
n = "old_extensions" if n == "extensions" and !confexts.include?(e)
v = v.split
m = macros[n] ||= []