diff options
author | Aleksey Gurtovoy <agurtovoy@acm.org> | 2019-10-04 18:34:02 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-05 22:17:44 +0200 |
commit | f56ef583d3c8ecda7725ca04b48011c9081a7349 (patch) | |
tree | dca107fce3c6cafa32e575406020be827b6197fa /mesonbuild/compilers/cuda.py | |
parent | 11f1adb7ddc800b8c016f3ee40e979a377ba9c01 (diff) | |
download | meson-f56ef583d3c8ecda7725ca04b48011c9081a7349.zip meson-f56ef583d3c8ecda7725ca04b48011c9081a7349.tar.gz meson-f56ef583d3c8ecda7725ca04b48011c9081a7349.tar.bz2 |
dependency('cuda')
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index a484e7f..088a7e7 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -18,7 +18,7 @@ from functools import partial from .. import coredata from .. import mlog -from ..mesonlib import EnvironmentException, MachineChoice, Popen_safe, OptionOverrideProxy, is_windows +from ..mesonlib import EnvironmentException, MachineChoice, Popen_safe, OptionOverrideProxy, is_windows, LibType from .compilers import (Compiler, cuda_buildtype_args, cuda_optimization_args, cuda_debug_args) @@ -294,6 +294,9 @@ class CudaCompiler(Compiler): def get_std_exe_link_args(self) -> typing.List[str]: return self._cook_link_args(self.host_compiler.get_std_exe_link_args()) + def find_library(self, libname, env, extra_dirs, libtype: LibType = LibType.PREFER_SHARED): + return ['-l' + libname] # FIXME + def get_crt_compile_args(self, crt_val, buildtype): return self._to_host_flags(self.host_compiler.get_crt_compile_args(crt_val, buildtype)) |