diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-01 02:14:41 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-16 18:19:13 -0500 |
commit | 07d9c72e17d15983f5a54256a0f39cb7414ed3dc (patch) | |
tree | a7b3c2062c6d9c18417b00eff0290a02156c9d35 /mesonbuild/compilers/cuda.py | |
parent | baecebda0e66ee76358854c452e96e5ed70a75de (diff) | |
download | meson-07d9c72e17d15983f5a54256a0f39cb7414ed3dc.zip meson-07d9c72e17d15983f5a54256a0f39cb7414ed3dc.tar.gz meson-07d9c72e17d15983f5a54256a0f39cb7414ed3dc.tar.bz2 |
flake8: fix wrong numbers of blank line separators
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 9662dbc..fc9d52a 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -259,10 +259,13 @@ class CudaCompiler(Compiler): def is_xcompiler_flag_isolated(flag: str) -> bool: return flag == '-Xcompiler' + def is_xcompiler_flag_glued(flag: str) -> bool: return flag.startswith('-Xcompiler=') + def is_xcompiler_flag(flag: str) -> bool: return is_xcompiler_flag_isolated(flag) or is_xcompiler_flag_glued(flag) + def get_xcompiler_val(flag: str, flagit: T.Iterator[str]) -> str: if is_xcompiler_flag_glued(flag): return flag[len('-Xcompiler='):] |