Setting Command#build correctly in automatic "mrbc" build for presym

This was the cause of the command line flag being affected by changes in the parent build.
So, for example, if `mruby-rational` was included, even the automatically added `mrbc` builds included `MRB_USE_RATIONAL`.
This commit is contained in:
dearblue
2022-04-19 21:48:50 +09:00
parent 4ce0f6dc05
commit be782b7d36
+2 -1
View File
@@ -500,7 +500,8 @@ EOS
v = instance_variable_get(n)
v = case v
when nil, true, false, Numeric; v
when String, Command; v.clone
when String; v.clone
when Command; v.clone.tap { |u| u.build = build }
else Marshal.load(Marshal.dump(v)) # deep clone
end
build.instance_variable_set(n, v)