diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2023-09-04 19:35:04 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-08 11:27:15 -0400 |
commit | 306efbd5b77abdc6ffca27bcb049f3196b7e3451 (patch) | |
tree | 372ff4a9bc4e6cefc9c6c825c38ddbd2ec3bee4d /docs/markdown/snippets | |
parent | 6cfd2b4d5bd30b372268c25308b1cb00afd0996d (diff) | |
download | meson-306efbd5b77abdc6ffca27bcb049f3196b7e3451.zip meson-306efbd5b77abdc6ffca27bcb049f3196b7e3451.tar.gz meson-306efbd5b77abdc6ffca27bcb049f3196b7e3451.tar.bz2 |
dependencies: fix crash in Qt if private_headers dir not found
You cannot listdir() a directory that doesn't exist. This header
directory may not exist if suitable devel packages in distros with
split devel packages, aren't installed.
In theory we could raise a suitable error here. But it would be
inconsistent -- we don't otherwise validate that the Qt include
directories exist, usually just assuming they do because the dependency
was found. And this is niche code inside a non-default special kwarg.
At least for pkg-config, it's probably a bug in the distro if pkg-config
files exist but the headers don't. The qmake status is less clear.
Avoiding a crash means that at the very least, if those headers are in
fact directly used by the project, an obvious compiler error occurs
instead of a noisy meson traceback.
Fixes #12214
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions