diff options
author | Kramer Peace <kpeace1@gmail.com> | 2019-09-02 14:23:11 +0300 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-09-05 08:38:56 -0700 |
commit | fb9a5ce8672a01b4b82d10fe2518a047dc532da9 (patch) | |
tree | 55115636518d01cd3b26f3e16fd18733f530dabb /mesonbuild/compilers | |
parent | bd37147b4b46081c58e0b15f6a0f0123099b27b1 (diff) | |
download | meson-fb9a5ce8672a01b4b82d10fe2518a047dc532da9.zip meson-fb9a5ce8672a01b4b82d10fe2518a047dc532da9.tar.gz meson-fb9a5ce8672a01b4b82d10fe2518a047dc532da9.tar.bz2 |
Add a CUDA linker object
Fixes issue #5870
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |