vs2010: use copy of buildtype_args to not change global state
We do not want the modifications of general_args to propagate to the global buildtype_args.
This commit is contained in:
parent
7019daaab0
commit
84804fc531
|
@ -437,7 +437,7 @@ class Vs2010Backend(backends.Backend):
|
|||
for l, args in target.extra_args.items():
|
||||
if l in extra_args:
|
||||
extra_args[l] += args
|
||||
general_args = compiler.get_buildtype_args(self.buildtype)
|
||||
general_args = compiler.get_buildtype_args(self.buildtype).copy()
|
||||
# FIXME all the internal flags of VS (optimization etc) are represented
|
||||
# by their own XML elements. In theory we should split all flags to those
|
||||
# that have an XML element and those that don't and serialise them
|
||||
|
|
Loading…
Reference in New Issue