aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cuda.py
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-07-18 23:14:38 +0200
committerDavid Seifert <soap@gentoo.org>2021-07-18 23:14:38 +0200
commit28d13f4bfe57ec7ae1afd178fab997582a9e286e (patch)
treee1fdd8a39fcff396374d7a76b4708a743b2c5049 /mesonbuild/compilers/cuda.py
parent47a8e7ece7fe4bb8ce9d838fb18d6c7f71c1cd5b (diff)
downloadmeson-28d13f4bfe57ec7ae1afd178fab997582a9e286e.zip
meson-28d13f4bfe57ec7ae1afd178fab997582a9e286e.tar.gz
meson-28d13f4bfe57ec7ae1afd178fab997582a9e286e.tar.bz2
Cuda: Enable PGO
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r--mesonbuild/compilers/cuda.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py
index 0218ded..0bdc145 100644
--- a/mesonbuild/compilers/cuda.py
+++ b/mesonbuild/compilers/cuda.py
@@ -767,5 +767,11 @@ class CudaCompiler(Compiler):
else:
return []
+ def get_profile_generate_args(self) -> T.List[str]:
+ return ['-Xcompiler=' + x for x in self.host_compiler.get_profile_generate_args()]
+
+ def get_profile_use_args(self) -> T.List[str]:
+ return ['-Xcompiler=' + x for x in self.host_compiler.get_profile_use_args()]
+
def get_disable_assert_args(self) -> T.List[str]:
return self.host_compiler.get_disable_assert_args()