diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-22 15:18:24 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-10-01 15:05:00 -0700 |
commit | d3a059b55fac4e9cc3c7c306b2e6a4cf5e424aad (patch) | |
tree | 7951e833a430ff7b60e1ad9c3a924fa48aa0b1a0 /mesonbuild/compilers/compilers.py | |
parent | 6d173f9678b02fce302c9bb59f0c8d19c6178fde (diff) | |
download | meson-d3a059b55fac4e9cc3c7c306b2e6a4cf5e424aad.zip meson-d3a059b55fac4e9cc3c7c306b2e6a4cf5e424aad.tar.gz meson-d3a059b55fac4e9cc3c7c306b2e6a4cf5e424aad.tar.bz2 |
compilers/cuda: make type safe
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 0b52b8b..fbb3eae 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -863,6 +863,9 @@ class Compiler(metaclass=abc.ABCMeta): def thread_flags(self, env: 'Environment') -> T.List[str]: return [] + def thread_link_flags(self, env: 'Environment') -> T.List[str]: + return self.linker.thread_flags(env) + def openmp_flags(self) -> T.List[str]: raise EnvironmentException('Language %s does not support OpenMP flags.' % self.get_display_language()) @@ -954,6 +957,9 @@ class Compiler(metaclass=abc.ABCMeta): def bitcode_args(self) -> T.List[str]: return self.linker.bitcode_args() + def get_buildtype_args(self, buildtype: str) -> T.List[str]: + raise EnvironmentException('{} does not implement get_buildtype_args'.format(self.id)) + def get_buildtype_linker_args(self, buildtype: str) -> T.List[str]: return self.linker.get_buildtype_args(buildtype) @@ -1078,6 +1084,10 @@ class Compiler(metaclass=abc.ABCMeta): def get_depfile_suffix(self) -> str: raise EnvironmentError('{} does not implement get_depfile_suffix'.format(self.id)) + def get_no_stdinc_args(self) -> T.List[str]: + """Arguments to turn off default inclusion of standard libraries.""" + return [] + def get_args_from_envvars(lang: str, for_machine: MachineChoice, |