aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-08-22 18:31:56 +0300
committerGitHub <noreply@github.com>2020-08-22 18:31:56 +0300
commitc42298e1460f838710bfe1d33b5635bec25fa8ba (patch)
treefd8ab90e7626d52698b3b6fe86c397932d8a5359 /mesonbuild/linkers.py
parentfbc6d50acc2c6bbe67d5ac2c5432163fb3e7bd39 (diff)
parent0c5f3c7483c147652463a024aafe4bcb6bc8946c (diff)
downloadmeson-c42298e1460f838710bfe1d33b5635bec25fa8ba.zip
meson-c42298e1460f838710bfe1d33b5635bec25fa8ba.tar.gz
meson-c42298e1460f838710bfe1d33b5635bec25fa8ba.tar.bz2
Merge pull request #7447 from scivision/nvc
Add support for NVidia HPC SDK compilers
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r--mesonbuild/linkers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index 3ce7111..505aef6 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -712,7 +712,7 @@ class GnuDynamicLinker(GnuLikeDynamicLinkerMixin, PosixDynamicLinkerMixin, Dynam
"""Representation of GNU ld.bfd and ld.gold."""
def get_accepts_rsp(self) -> bool:
- return True;
+ return True
class GnuGoldDynamicLinker(GnuDynamicLinker):
@@ -964,6 +964,8 @@ class PGIDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
return (['-R' + os.path.join(build_dir, p) for p in rpath_paths], set())
return ([], set())
+NvidiaHPC_DynamicLinker = PGIDynamicLinker
+
class PGIStaticLinker(StaticLinker):
def __init__(self, exelist: T.List[str]):
@@ -977,6 +979,8 @@ class PGIStaticLinker(StaticLinker):
def get_output_args(self, target: str) -> T.List[str]:
return [target]
+NvidiaHPC_StaticLinker = PGIStaticLinker
+
class VisualStudioLikeLinkerMixin: