summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-01-10 15:00:36 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-10-15 10:21:46 -0700
commit67510c167c131d405a9ce6d8269d3042b81d94b5 (patch)
treec1a9088c705f194c8391122d6e18af304e113d24 /mesonbuild/interpreter/interpreter.py
parent020e58b59972a6cbfb78841021a87cd5162a9a77 (diff)
downloadmeson-67510c167c131d405a9ce6d8269d3042b81d94b5.tar.gz
build: remove build layer validation of Executable(implib)
This includes cleaning up some of the type handling to account for cleanups that are done at the DSL level.
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 72e937904..51671bfc5 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -3541,11 +3541,10 @@ class Interpreter(InterpreterBase, HoldableObject):
elif kwargs['export_dynamic']:
if kwargs['implib'] is False:
raise InvalidArguments('"implib" keyword" must not be false if "export_dynamic" is set and not false.')
- kwargs['implib'] = True
if kwargs['export_dynamic'] is None:
kwargs['export_dynamic'] = False
- if kwargs['implib'] is None:
- kwargs['implib'] = False
+ if isinstance(kwargs['implib'], bool):
+ kwargs['implib'] = None
target = targetclass(name, self.subdir, self.subproject, for_machine, srcs, struct, objs,
self.environment, self.compilers[for_machine], kwargs)