diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-02-20 13:33:19 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-02-20 14:05:33 +0530 |
commit | b78f6f38f738d05d1c447ad991d158b355805e55 (patch) | |
tree | 054d31b3e76e353cc33a573b0fc7e19fe8a6174f /run_unittests.py | |
parent | 37b702e9aa4255e1d0c5fa706e52842877cf01b3 (diff) | |
download | meson-nirbheek/stable-fix-pkgconfig-dependency-static.tar.gz |
pkgconfig deps: Warn when a static library isn't foundnirbheek/stable-fix-pkgconfig-dependency-static
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 3a66211a4..6c71861d9 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1563,9 +1563,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') |