aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-01 02:14:41 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-02-16 18:19:13 -0500
commit07d9c72e17d15983f5a54256a0f39cb7414ed3dc (patch)
treea7b3c2062c6d9c18417b00eff0290a02156c9d35 /mesonbuild
parentbaecebda0e66ee76358854c452e96e5ed70a75de (diff)
downloadmeson-07d9c72e17d15983f5a54256a0f39cb7414ed3dc.zip
meson-07d9c72e17d15983f5a54256a0f39cb7414ed3dc.tar.gz
meson-07d9c72e17d15983f5a54256a0f39cb7414ed3dc.tar.bz2
flake8: fix wrong numbers of blank line separators
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/cmake/traceparser.py1
-rw-r--r--mesonbuild/compilers/cuda.py3
-rw-r--r--mesonbuild/dependencies/cmake.py1
-rw-r--r--mesonbuild/interpreter/kwargs.py1
4 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/cmake/traceparser.py b/mesonbuild/cmake/traceparser.py
index a07082a..7909e13 100644
--- a/mesonbuild/cmake/traceparser.py
+++ b/mesonbuild/cmake/traceparser.py
@@ -388,6 +388,7 @@ class CMakeTraceParser:
target.depends += [key]
working_dir = None
+
def handle_working_dir(key: str, target: CMakeGeneratorTarget) -> None:
nonlocal working_dir
if working_dir is None:
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='):]
diff --git a/mesonbuild/dependencies/cmake.py b/mesonbuild/dependencies/cmake.py
index c8eaf9e..09f7f14 100644
--- a/mesonbuild/dependencies/cmake.py
+++ b/mesonbuild/dependencies/cmake.py
@@ -482,7 +482,6 @@ class CMakeDependency(ExternalDependency):
for tgt in partial_modules:
mlog.debug(tgt)
-
incDirs = [x for x in self.traceparser.get_cmake_var('PACKAGE_INCLUDE_DIRS') if x]
defs = [x for x in self.traceparser.get_cmake_var('PACKAGE_DEFINITIONS') if x]
libs_raw = [x for x in self.traceparser.get_cmake_var('PACKAGE_LIBRARIES') if x]
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index b97fe05..dff9e12 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -252,7 +252,6 @@ class DependencyPkgConfigVar(TypedDict):
define_variable: T.List[str]
-
class DependencyGetVariable(TypedDict):
cmake: T.Optional[str]