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:
Nicolas Schneider 2016-03-25 11:01:07 +01:00
parent 7019daaab0
commit 84804fc531
1 changed files with 1 additions and 1 deletions

View File

@ -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