aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/envconfig.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-12-11 13:27:26 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-11 11:15:07 -0800
commitf3fcbba1f89f0b2a323dd596a3caf4fce5a1611e (patch)
tree349f993b9421e3ce904df7777f479402249d99b0 /mesonbuild/envconfig.py
parente7a5c75285ce63a7197cd82e893450eb9bb68b6c (diff)
downloadmeson-f3fcbba1f89f0b2a323dd596a3caf4fce5a1611e.zip
meson-f3fcbba1f89f0b2a323dd596a3caf4fce5a1611e.tar.gz
meson-f3fcbba1f89f0b2a323dd596a3caf4fce5a1611e.tar.bz2
boost: default machine file properties to env var values
This both moves the env reading to configuration time, which is useful, and also simplifies the implementation of the boost dependency. The simplification comes from being able to delete basically duplicated code since the values will be in the Properties if they exist at all.
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r--mesonbuild/envconfig.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 69b6678..596defe 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -163,14 +163,6 @@ def get_env_var_pair(for_machine: MachineChoice,
mlog.debug('Using {!r} from environment with value: {!r}'.format(var, value))
return var, value
-def get_env_var(for_machine: MachineChoice,
- is_cross: bool,
- var_name: str) -> T.Optional[str]:
- ret = get_env_var_pair(for_machine, is_cross, var_name)
- if ret is None:
- return None
- return ret[1]
-
class Properties:
def __init__(
self,