diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-02-20 13:33:19 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-02-20 19:26:51 +0200 |
commit | 8842839bb4c8dadaba1808535928ede7527d5b53 (patch) | |
tree | 86c88bb459b0ad5327a1a364841f5cc47938c0bd /run_unittests.py | |
parent | 0c1c387703c04c8052161b7506c07f216329b232 (diff) | |
download | meson-8842839bb4c8dadaba1808535928ede7527d5b53.zip meson-8842839bb4c8dadaba1808535928ede7527d5b53.tar.gz meson-8842839bb4c8dadaba1808535928ede7527d5b53.tar.bz2 |
pkgconfig deps: Warn when a static library isn't found
A hard error makes this feature useless in most cases since a static
library usually won't be found for every library, particularly system
libraries like -lm. Instead, warn so the user can provide the static
library if they wish.
This feature will be expanded and made more extensible and more usable
in the future.
Closes https://github.com/mesonbuild/meson/issues/2785
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index ac627da..fd424be 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1567,9 +1567,13 @@ int main(int argc, char **argv) { def test_pkgconfig_static(self): ''' - Test that the we only use static libraries when `static: true` is + Test that the we prefer static libraries when `static: true` is passed to dependency() with pkg-config. Can't be an ordinary test because we need to build libs and try to find them from meson.build + + Also test that it's not a hard error to have unsatisfiable library deps + since system libraries -lm will never be found statically. + https://github.com/mesonbuild/meson/issues/2785 ''' if not shutil.which('pkg-config'): raise unittest.SkipTest('pkg-config not found') |