aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Bederian <carlos.bederian@unc.edu.ar>2020-10-15 23:43:51 -0300
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-10-16 18:18:46 +0200
commitc3b3dc598e8c417e66792444945f7c803d772e62 (patch)
tree7c31d52f6889cb425fec6145a31a7176b78f1f27
parent71be873be22d38d1b156b9811fea3ed01781dc55 (diff)
downloadmeson-c3b3dc598e8c417e66792444945f7c803d772e62.zip
meson-c3b3dc598e8c417e66792444945f7c803d772e62.tar.gz
meson-c3b3dc598e8c417e66792444945f7c803d772e62.tar.bz2
compilers/cuda: Use format_map(mapping) instead of format(**mapping)
-rw-r--r--mesonbuild/compilers/cuda.py4
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()