aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-12-08 10:56:44 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-11 11:15:06 -0800
commitf202da0689795ba4330581e69a879f089e169f6c (patch)
tree5c86f99a03a466d20234cc270cd6103717cfc2e0 /mesonbuild/compilers/compilers.py
parent4580433b8255b9f69dfbd39a28c21bc1ec785bcf (diff)
downloadmeson-f202da0689795ba4330581e69a879f089e169f6c.zip
meson-f202da0689795ba4330581e69a879f089e169f6c.tar.gz
meson-f202da0689795ba4330581e69a879f089e169f6c.tar.bz2
use PEP8 style naming for LANGUAGES_USING_* as well
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 41e1036..23a3bc5 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -85,9 +85,9 @@ clink_suffixes += ('h', 'll', 's')
all_suffixes = set(itertools.chain(*lang_suffixes.values(), clink_suffixes)) # type: T.Set[str]
# Languages that should use LDFLAGS arguments when linking.
-languages_using_ldflags = {'objcpp', 'cpp', 'objc', 'c', 'fortran', 'd', 'cuda'} # type: T.Set[str]
+LANGUAGES_USING_LDFLAGS = {'objcpp', 'cpp', 'objc', 'c', 'fortran', 'd', 'cuda'} # type: T.Set[str]
# Languages that should use CPPFLAGS arguments when linking.
-languages_using_cppflags = {'c', 'cpp', 'objc', 'objcpp'} # type: T.Set[str]
+LANGUAGES_USING_CPPFLAGS = {'c', 'cpp', 'objc', 'objcpp'} # type: T.Set[str]
soregex = re.compile(r'.*\.so(\.[0-9]+)?(\.[0-9]+)?(\.[0-9]+)?$')
# Environment variables that each lang uses.
@@ -1222,7 +1222,7 @@ def get_args_from_envvars(lang: str,
compile_flags += split_args(env_compile_flags)
# Link flags (same for all languages)
- if lang in languages_using_ldflags:
+ if lang in LANGUAGES_USING_LDFLAGS:
link_flags += LinkerEnvVarsMixin.get_args_from_envvars(for_machine, is_cross)
if use_linker_args:
# When the compiler is used as a wrapper around the linker (such as
@@ -1232,7 +1232,7 @@ def get_args_from_envvars(lang: str,
link_flags = compile_flags + link_flags
# Pre-processor flags for certain languages
- if lang in languages_using_cppflags:
+ if lang in LANGUAGES_USING_CPPFLAGS:
env_preproc_flags = get_env_var(for_machine, is_cross, 'CPPFLAGS')
if env_preproc_flags is not None:
compile_flags += split_args(env_preproc_flags)