diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-31 15:42:19 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-31 15:43:04 +0100 |
commit | 56558652460104cbc74a4f1fa328d3aa34eebf0c (patch) | |
tree | cea1cbe1a60b076a792a87f400a7c28932f6f9a2 /mesonbuild/ast/introspection.py | |
parent | c64d80cf2fa94c458e4fc528723bb7ed11daa3a0 (diff) | |
download | meson-56558652460104cbc74a4f1fa328d3aa34eebf0c.zip meson-56558652460104cbc74a4f1fa328d3aa34eebf0c.tar.gz meson-56558652460104cbc74a4f1fa328d3aa34eebf0c.tar.bz2 |
Added test case
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r-- | mesonbuild/ast/introspection.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index 0a4d73a..67a0fe7 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -163,10 +163,8 @@ class IntrospectionInterpreter(AstInterpreter): if elemetary_nodes: source_nodes += [curr] - # Filter out kwargs from other target types. For example 'soversion' - # passed to library() when default_library == 'static'. - kwargs = {k: v for k, v in kwargs.items() if k in targetclass.known_kwargs} - + # Make sure nothing can crash when creating the build class + kwargs = {} is_cross = False objects = [] empty_sources = [] # Passing the unresolved sources list causes errors |