diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-26 14:38:44 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-08-16 16:21:51 -0700 |
commit | e3c72ad7c796fb69db998e87e1e2e4e7c834e081 (patch) | |
tree | f617aa37a0394372b29e17df061e5d977b807c24 /mesonbuild/compilers/cuda.py | |
parent | e9639be16790f94d759ea8467541e3a471565622 (diff) | |
download | meson-e3c72ad7c796fb69db998e87e1e2e4e7c834e081.zip meson-e3c72ad7c796fb69db998e87e1e2e4e7c834e081.tar.gz meson-e3c72ad7c796fb69db998e87e1e2e4e7c834e081.tar.bz2 |
compilers: Fix extra_args parameter
which can also be a callable taking a CompileChekcMode as an argumetn
and returning a list of strings.
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 0bdc145..485bbfb 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -24,7 +24,7 @@ from ..mesonlib import ( is_windows, LibType, OptionKey, ) from .compilers import (Compiler, cuda_buildtype_args, cuda_optimization_args, - cuda_debug_args) + cuda_debug_args, CompileCheckMode) if T.TYPE_CHECKING: from ..build import BuildTarget @@ -584,7 +584,7 @@ class CudaCompiler(Compiler): def has_header_symbol(self, hname: str, symbol: str, prefix: str, env: 'Environment', *, - extra_args: T.Optional[T.List[str]] = None, + extra_args: T.Union[None, T.List[str], T.Callable[[CompileCheckMode], T.List[str]]] = None, dependencies: T.Optional[T.List['Dependency']] = None) -> T.Tuple[bool, bool]: if extra_args is None: extra_args = [] |