diff options
| author | gerioldman <k.gergo49@gmail.com> | 2023-09-23 00:33:39 +0200 |
|---|---|---|
| committer | gerioldman <k.gergo49@gmail.com> | 2025-01-08 01:52:03 +0100 |
| commit | 62c5db2cb3809e584bd4faef5c0a9d112e36a29c (patch) | |
| tree | 4a74e3e62377bfa54b7252ea78a67d598d9a26ae /mesonbuild/compilers/compilers.py | |
| parent | a05135fe94383e82147442d701f18c49dfc4ef00 (diff) | |
| download | meson-62c5db2cb3809e584bd4faef5c0a9d112e36a29c.tar.gz | |
Add TASKING compiler support
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 8788df0be..f8d4ac439 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -251,6 +251,7 @@ BASE_OPTIONS: T.Mapping[OptionKey, BaseOption] = { OptionKey('b_bitcode'): BaseOption(options.UserBooleanOption, 'Generate and embed bitcode (only macOS/iOS/tvOS)', False), OptionKey('b_vscrt'): BaseOption(options.UserComboOption, 'VS run-time library type to use.', 'from_buildtype', choices=MSCRT_VALS + ['from_buildtype', 'static_from_buildtype']), + OptionKey('b_tasking_mil_link'): BaseOption(options.UserBooleanOption, 'Use TASKING compiler families MIL linking feature', False), } base_options = {key: base_opt.init_option(key) for key, base_opt in BASE_OPTIONS.items()} @@ -1353,6 +1354,13 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): def form_compileropt_key(self, basename: str) -> OptionKey: return OptionKey(f'{self.language}_{basename}', machine=self.for_machine) + def get_tasking_mil_link_args(self, option_enabled: bool) -> T.List[str]: + """ + Argument for enabling TASKING's MIL link feature, + for most compilers, this will return nothing. + """ + return [] + def get_global_options(lang: str, comp: T.Type[Compiler], for_machine: MachineChoice, |
