aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorAleksey Gurtovoy <agurtovoy@acm.org>2019-09-06 12:31:26 -0500
committerDylan Baker <dylan@pnwbakers.com>2019-09-24 14:22:20 -0700
commit6ac5db50c901f172176b297d087e6123df497062 (patch)
treec57cab2ef12633b760ab0189539a932e3b465817 /mesonbuild/compilers/compilers.py
parent1670fca36fcb1a4fe4780e96731e954515501a35 (diff)
downloadmeson-6ac5db50c901f172176b297d087e6123df497062.zip
meson-6ac5db50c901f172176b297d087e6123df497062.tar.gz
meson-6ac5db50c901f172176b297d087e6123df497062.tar.bz2
CUDA support on Windows
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index a1292a4..bb698fc 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -222,8 +222,8 @@ cuda_optimization_args = {'0': [],
'g': ['-O0'],
'1': ['-O1'],
'2': ['-O2'],
- '3': ['-O3', '-Otime'],
- 's': ['-O3', '-Ospace']
+ '3': ['-O3'],
+ 's': ['-O3']
}
cuda_debug_args = {False: [],
@@ -1144,6 +1144,15 @@ class Compiler:
env, prefix, shlib_name, suffix, soversion,
darwin_versions, is_shared_module)
+ def get_target_link_args(self, target):
+ return target.link_args
+
+ def get_dependency_compile_args(self, dep):
+ return dep.get_compile_args()
+
+ def get_dependency_link_args(self, dep):
+ return dep.get_link_args()
+
@enum.unique
class CompilerType(enum.Enum):