interpreter: use typed_kwargs for executable's "pie" keyword argument

pull/12315/head
Dylan Baker 1 year ago
parent c84dcd309d
commit 2ded5a8faa
  1. 1
      mesonbuild/interpreter/kwargs.py
  2. 1
      mesonbuild/interpreter/type_checking.py

@ -342,6 +342,7 @@ class Executable(_BuildTarget):
export_dynamic: bool
gui_app: T.Optional[bool]
pie: T.Optional[bool]
vs_module_defs: T.Optional[T.Union[str, File, build.CustomTarget, build.CustomTargetIndex]]
win_subsystem: T.Optional[str]

@ -590,6 +590,7 @@ _DARWIN_VERSIONS_KW: KwargInfo[T.List[T.Union[str, int]]] = KwargInfo(
_EXCLUSIVE_EXECUTABLE_KWS: T.List[KwargInfo] = [
KwargInfo('export_dynamic', bool, default=False, since='0.45.0'),
KwargInfo('gui_app', (bool, NoneType), deprecated='0.56.0', deprecated_message="Use 'win_subsystem' instead"),
KwargInfo('pie', (bool, NoneType)),
KwargInfo(
'win_subsystem',
(str, NoneType),

Loading…
Cancel
Save