summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-07-29 21:30:10 -0700
committerDylan Baker <dylan@pnwbakers.com>2023-09-29 15:52:03 -0700
commitc84dcd309d45ffe4d3257ea5d7f4335ee81c9247 (patch)
tree0b046eb244a8c4cd87e89178b367be1eb2c3ac59
parent6402f53a13cdcd103b92ab6ef8dec9bf323a9e2c (diff)
downloadmeson-c84dcd309d45ffe4d3257ea5d7f4335ee81c9247.tar.gz
interpreter: use typed_kwargs for executable(export_dynamic)
-rw-r--r--mesonbuild/interpreter/kwargs.py1
-rw-r--r--mesonbuild/interpreter/type_checking.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index 26fe28cf0..80ded8c33 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -340,6 +340,7 @@ class _LibraryMixin(TypedDict):
class Executable(_BuildTarget):
+ export_dynamic: bool
gui_app: T.Optional[bool]
vs_module_defs: T.Optional[T.Union[str, File, build.CustomTarget, build.CustomTargetIndex]]
win_subsystem: T.Optional[str]
diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py
index 6e105410a..f6df868ba 100644
--- a/mesonbuild/interpreter/type_checking.py
+++ b/mesonbuild/interpreter/type_checking.py
@@ -588,6 +588,7 @@ _DARWIN_VERSIONS_KW: KwargInfo[T.List[T.Union[str, int]]] = KwargInfo(
# Arguments exclusive to Executable. These are separated to make integrating
# them into build_target easier
_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(
'win_subsystem',