From 28d13f4bfe57ec7ae1afd178fab997582a9e286e Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 18 Jul 2021 23:14:38 +0200 Subject: Cuda: Enable PGO --- mesonbuild/compilers/cuda.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 0218dede8..0bdc145d4 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() -- cgit v1.2.3