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.
pull/475/head
Nicolas Schneider 9 years ago
parent 7019daaab0
commit 84804fc531
  1. 2
      mesonbuild/backend/vs2010backend.py

@ -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…
Cancel
Save