summaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-03-04 08:14:38 -0800
committerEli Schwartz <eschwartz93@gmail.com>2025-03-10 14:14:25 -0400
commit4fa52925459dac650bf053715987ee7beb3b23c1 (patch)
tree1ac2f3732063ad936eb6ef9dc6009c8c955527af /mesonbuild/environment.py
parent43ea11ea49948635b1d672fef1bd397233b65b19 (diff)
downloadmeson-4fa52925459dac650bf053715987ee7beb3b23c1.tar.gz
coredata: replace get_option with optstore.get_value_for
This is an old method, that is now just a wrapper around the OptionStore method, that doesn't add any value. It's also an option related method attached to the CoreData instead of the OptionStore, so useless and a layering violation.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index da29d6c3c..5640b9de3 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -964,25 +964,25 @@ class Environment:
return self.get_libdir()
def get_prefix(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('prefix')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('prefix')))
def get_libdir(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('libdir')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('libdir')))
def get_libexecdir(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('libexecdir')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('libexecdir')))
def get_bindir(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('bindir')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('bindir')))
def get_includedir(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('includedir')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('includedir')))
def get_mandir(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('mandir')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('mandir')))
def get_datadir(self) -> str:
- return _as_str(self.coredata.get_option(OptionKey('datadir')))
+ return _as_str(self.coredata.optstore.get_value_for(OptionKey('datadir')))
def get_compiler_system_lib_dirs(self, for_machine: MachineChoice) -> T.List[str]:
for comp in self.coredata.compilers[for_machine].values():