diff options
author | Sam H <smammy@users.noreply.github.com> | 2018-03-21 22:08:07 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-24 01:31:48 +0200 |
commit | 3e48d476747d188690cc29e747570981047bfbae (patch) | |
tree | c361b7b08a8c053d07cb8e9c031b832e840e1640 | |
parent | 8b1e9a6f6aa563e8c2d6331bf2bb6df5c57f6a0e (diff) | |
download | meson-3e48d476747d188690cc29e747570981047bfbae.zip meson-3e48d476747d188690cc29e747570981047bfbae.tar.gz meson-3e48d476747d188690cc29e747570981047bfbae.tar.bz2 |
Squash target_type warning for jar targets
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index c2f547b..3ff68ed 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -85,6 +85,8 @@ known_exe_kwargs = known_basic_kwargs.copy() known_exe_kwargs.update({'implib': True, 'export_dynamic': True }) +known_jar_kwargs = known_basic_kwargs.copy() +known_jar_kwargs.update({'target_type': 'jar'}) class InvalidArguments(MesonException): pass @@ -1824,6 +1826,8 @@ class Jar(BuildTarget): # All jar targets are installable. pass + def check_unknown_kwargs(self, kwargs): + self.check_unknown_kwargs_int(kwargs, known_jar_kwargs) class CustomTargetIndex: |