aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-12-11 13:40:29 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-11 11:15:07 -0800
commitff40ca25b776392625275bd7891701e02675e2b7 (patch)
treef23abaf92571f9440268a04083c4b6ef9e64be3c /mesonbuild/environment.py
parent1cc7e4c84cc2b411b7adbc58d7a302fa7117c6e0 (diff)
downloadmeson-ff40ca25b776392625275bd7891701e02675e2b7.zip
meson-ff40ca25b776392625275bd7891701e02675e2b7.tar.gz
meson-ff40ca25b776392625275bd7891701e02675e2b7.tar.bz2
make some Environment methods protected
they're really not public methods, they'r only meant to be called from the initializer. Let's mark them as such.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 7889911..1a7f3f1 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -640,7 +640,7 @@ class Environment:
binaries.build = BinaryTable(config.get('binaries', {}))
properties.build = Properties(config.get('properties', {}))
cmakevars.build = CMakeVariables(config.get('cmake', {}))
- self.load_machine_file_options(config, properties.build, MachineChoice.BUILD)
+ self._load_machine_file_options(config, properties.build, MachineChoice.BUILD)
## Read in cross file(s) to override host machine configuration
@@ -658,7 +658,7 @@ class Environment:
for key, value in list(self.options.items()):
if self.coredata.is_per_machine_option(key):
self.options[key.as_build()] = value
- self.load_machine_file_options(config, properties.host, MachineChoice.HOST)
+ self._load_machine_file_options(config, properties.host, MachineChoice.HOST)
else:
# IF we aren't cross compiling, but we hav ea native file, the
# native file is for the host. This is due to an mismatch between
@@ -678,7 +678,7 @@ class Environment:
self.options.update(options.cmd_line_options)
# Take default value from env if not set in cross/native files or command line.
- self.set_default_options_from_env()
+ self._set_default_options_from_env()
self._set_default_binaries_from_env()
self._set_default_properties_from_env()
@@ -746,7 +746,7 @@ class Environment:
self.default_pkgconfig = ['pkg-config']
self.wrap_resolver = None
- def load_machine_file_options(self, config: 'ConfigParser', properties: Properties, machine: MachineChoice) -> None:
+ def _load_machine_file_options(self, config: 'ConfigParser', properties: Properties, machine: MachineChoice) -> None:
"""Read the contents of a Machine file and put it in the options store."""
paths = config.get('paths')
if paths:
@@ -777,7 +777,7 @@ class Environment:
key = OptionKey.from_string(k).evolve(subproject=subproject)
self.options[key] = v
- def set_default_options_from_env(self) -> None:
+ def _set_default_options_from_env(self) -> None:
opts: T.List[T.Tuple[str, str]] = (
[(v, f'{k}_args') for k, v in compilers.compilers.CFLAGS_MAPPING.items()] +
[