aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNicolas Schneider <nioncode+git@gmail.com>2016-03-25 11:01:07 +0100
committerNicolas Schneider <nioncode+git@gmail.com>2016-03-25 11:01:07 +0100
commit84804fc53123e8681a381a38f5ea13db8d401a43 (patch)
tree414595de3a64edbc148e87c9e701bb3a7d251887 /mesonbuild/backend/vs2010backend.py
parent7019daaab04cac0be83451055e267ad7d6b1c5f6 (diff)
downloadmeson-84804fc53123e8681a381a38f5ea13db8d401a43.zip
meson-84804fc53123e8681a381a38f5ea13db8d401a43.tar.gz
meson-84804fc53123e8681a381a38f5ea13db8d401a43.tar.bz2
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.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 84ef8c3..ec10d4c 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/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