From fb9a5ce8672a01b4b82d10fe2518a047dc532da9 Mon Sep 17 00:00:00 2001 From: Kramer Peace Date: Mon, 2 Sep 2019 14:23:11 +0300 Subject: Add a CUDA linker object Fixes issue #5870 --- mesonbuild/compilers/cuda.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 3bcabf5..0a26bed 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -34,7 +34,7 @@ class CudaCompiler(Compiler): super().__init__(exelist, version, for_machine, **kwargs) self.is_cross = is_cross self.exe_wrapper = exe_wrapper - self.id = 'nvcc' + self.id = CudaCompiler.cuda_id() default_warn_args = [] self.warn_args = {'0': [], '1': default_warn_args, @@ -42,6 +42,10 @@ class CudaCompiler(Compiler): '3': default_warn_args + ['-Xcompiler=-Wextra', '-Xcompiler=-Wpedantic']} + @staticmethod + def cuda_id(): + return 'nvcc' + def needs_static_linker(self): return False -- cgit v1.1