aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-10-07 10:20:05 -0700
committerNirbheek Chauhan <nirbheek@centricular.com>2019-11-07 17:11:22 +0530
commited7f9604948b10a10ebb8ece24aa42c39b949920 (patch)
tree5d04921bd1e70a6b974d9235e38075ef55c52751
parent2779603c689c6347809255a5aa3bd59b46b18b81 (diff)
downloadmeson-ed7f9604948b10a10ebb8ece24aa42c39b949920.zip
meson-ed7f9604948b10a10ebb8ece24aa42c39b949920.tar.gz
meson-ed7f9604948b10a10ebb8ece24aa42c39b949920.tar.bz2
linkers: Use PosixDynamicLinkerMixin for Cuda
Since cuda is currently reimplementing all of the shared methods itself, including a bug fixed by the next patch.
-rw-r--r--mesonbuild/linkers.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index c5c9813..65a7e2c 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -930,7 +930,7 @@ class OptlinkDynamicLinker(VisualStudioLikeLinkerMixin, DynamicLinker):
def get_allow_undefined_args(self) -> typing.List[str]:
return []
-class CudaLinker(DynamicLinker):
+class CudaLinker(PosixDynamicLinkerMixin, DynamicLinker):
"""Cuda linker (nvlink)"""
@staticmethod
def parse_version():
@@ -964,12 +964,6 @@ class CudaLinker(DynamicLinker):
from .compilers import CudaCompiler
return CudaCompiler.LINKER_PREFIX
- def get_output_args(self, outname: str) -> typing.List[str]:
- return ['-o', outname]
-
- def get_search_args(self, dirname: str) -> typing.List[str]:
- return ['-L', dirname]
-
def fatal_warnings(self) -> typing.List[str]:
return ['--warning-as-error']
@@ -980,6 +974,3 @@ class CudaLinker(DynamicLinker):
suffix: str, soversion: str, darwin_versions: typing.Tuple[str, str],
is_shared_module: bool) -> typing.List[str]:
return []
-
- def get_std_shared_lib_args(self) -> typing.List[str]:
- return ['-shared']