aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-12-07 11:40:20 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2020-12-10 00:28:34 +0200
commit0efcb0be5f1aa834f6dcfcaba1d3a1ce487a6982 (patch)
tree5913d7dfa9efbb67143cd4cf8fb48c717b0a4d03 /mesonbuild/interpreter.py
parent6b328ef7c4dbc0e4a1079f9fe7aa885c66c85d2a (diff)
downloadmeson-0efcb0be5f1aa834f6dcfcaba1d3a1ce487a6982.zip
meson-0efcb0be5f1aa834f6dcfcaba1d3a1ce487a6982.tar.gz
meson-0efcb0be5f1aa834f6dcfcaba1d3a1ce487a6982.tar.bz2
pkgconfig: Respect variable ordering when passed as list
This fix a regression introduced in Meson 0.56.0 when using python 3.5. Also mention in documentation that using a meson dict does not guarantee ordering. Fixes: #8074.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 83acc01..59e29be 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2708,7 +2708,7 @@ class Interpreter(InterpreterBase):
varlist = mesonlib.stringlistify(variables)
if list_new:
FeatureNew.single_use('variables as list of strings', '0.56.0', self.subproject)
- variables = {}
+ variables = collections.OrderedDict()
for v in varlist:
try:
(key, value) = v.split('=', 1)