diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-04-02 14:15:59 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-04 12:46:55 +0300 |
| commit | 47984f813450bcbcd102ed45d579011deb4572c1 (patch) | |
| tree | 1c32e2f598a88b13464f3a007dbe8074fe824f91 /mesonbuild/compilers | |
| parent | 4ecf608936dbaf70fb1c4e807a82073162b56a45 (diff) | |
| download | meson-47984f813450bcbcd102ed45d579011deb4572c1.tar.gz | |
compilers: introduce get_option_std_args
Allow CUDA to completely override the -std arguments but not the rest.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 3398aa4af..89eceab75 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -611,6 +611,9 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): def get_option_compile_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: return [] + def get_option_std_args(self, target: BuildTarget, env: Environment, subproject: T.Optional[str] = None) -> T.List[str]: + return [] + def get_option_link_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: return self.linker.get_option_link_args(target, env, subproject) |
