diff options
-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 4dd9c36..603ad13 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -183,7 +183,7 @@ class CudaCompiler(Compiler): #endif return 0; }}''' - found, cached = self.compiles(t.format(**fargs), env, extra_args=extra_args, dependencies=dependencies) + found, cached = self.compiles(t.format_map(fargs), env, extra_args=extra_args, dependencies=dependencies) if found: return True, cached # Check if it's a class or a template @@ -193,7 +193,7 @@ class CudaCompiler(Compiler): int main(void) {{ return 0; }}''' - return self.compiles(t.format(**fargs), env, extra_args=extra_args, dependencies=dependencies) + return self.compiles(t.format_map(fargs), env, extra_args=extra_args, dependencies=dependencies) def get_options(self) -> 'OptionDictType': opts = super().get_options() |