Skip to content

Commit ee76b3c

Browse files
committed
build: Add android_exe_type to the Executable keyword arguments
Which removes the need to assert it.
1 parent 9d9e620 commit ee76b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class BuildTargetKeywordArguments(TypedDict, total=False):
110110

111111
class ExecutableKeywordArguments(BuildTargetKeywordArguments, total=False):
112112

113+
android_exe_type: T.Optional[Literal['application', 'executable']]
113114
implib: T.Optional[str]
114115
export_dynamic: bool
115116
pie: bool
@@ -2153,7 +2154,6 @@ def __init__(
21532154
environment, compilers, kwargs)
21542155
self.win_subsystem = kwargs.get('win_subsystem') or 'console'
21552156
self.pie = self._extract_pic_pie(kwargs, 'pie', 'b_pie')
2156-
assert kwargs.get('android_exe_type') is None or kwargs.get('android_exe_type') in {'application', 'executable'}
21572157
# Check for export_dynamic
21582158
self.implib_name = kwargs.get('implib')
21592159
# Only linkwithable if using export_dynamic

0 commit comments

Comments
 (0)