summaryrefslogtreecommitdiff
path: root/mesonbuild/coredata.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r--mesonbuild/coredata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index d295858dc..5469616f8 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -599,7 +599,7 @@ class CoreData:
oldval = self.optstore.get_value_object(key)
if type(oldval) is not type(value):
self.optstore.set_value(key, value.value)
- elif oldval.choices != value.choices:
+ elif oldval.printable_choices() != value.printable_choices():
# If the choices have changed, use the new value, but attempt
# to keep the old options. If they are not valid keep the new
# defaults but warn.