VarSet: make a deep copy of values passed to VarSet#append()
This commit is contained in:
parent
013995bbc0
commit
4a2997feec
@ -44,7 +44,7 @@ module Rscons
|
|||||||
# @param values [VarSet, Hash] New set of variables.
|
# @param values [VarSet, Hash] New set of variables.
|
||||||
def append(values)
|
def append(values)
|
||||||
values = values.vars if values.is_a?(VarSet)
|
values = values.vars if values.is_a?(VarSet)
|
||||||
@vars.merge!(values)
|
@vars.merge!(Marshal.load(Marshal.dump(values)))
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user