mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user