aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/coredata.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index 710d8c9..4be828b 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -850,13 +850,17 @@ class CoreData:
mlog.warning('Please see https://mesonbuild.com/Builtin-options.html#Notes_about_Apple_Bitcode_support for more details.', fatal=False)
class CmdLineFileParser(configparser.ConfigParser):
- def __init__(self):
+ def __init__(self) -> None:
# We don't want ':' as key delimiter, otherwise it would break when
# storing subproject options like "subproject:option=value"
super().__init__(delimiters=['='], interpolation=None)
+ def optionxform(self, option: str) -> str:
+ # Don't call str.lower() on keys
+ return option
+
class MachineFileParser():
- def __init__(self, filenames: T.List[str]):
+ def __init__(self, filenames: T.List[str]) -> None:
self.parser = CmdLineFileParser()
self.constants = {'True': True, 'False': False}
self.sections = {}