diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-09-23 09:19:05 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-10-23 13:18:34 +0300 |
commit | 064165485ce00aac64afd98120fd725032e559fd (patch) | |
tree | 2d173ee74fb5d582c60dc8c9faf57ed9f05464b0 /docs/refman/generatormd.py | |
parent | fa2585d0b364143fb588b8bb611eaa4d1c277811 (diff) | |
download | meson-064165485ce00aac64afd98120fd725032e559fd.zip meson-064165485ce00aac64afd98120fd725032e559fd.tar.gz meson-064165485ce00aac64afd98120fd725032e559fd.tar.bz2 |
Fix excluding sources for static lib in both_libraries()
When using both_libraries(), or library() with default_library=both, we
remove all sources from args and kwargs when building the static
library, and replace them by the objects from the shared library. But
sources could also come from any InternalDependency, in which case we
currently build them twice (not efficient) and link both objects into
the static library.
It also means that when we needlessly build those source for the static
library, it miss order dependency on generated headers that we removed
from args/kwargs, which can cause build errors in the case the source
from static lib is compiled before the header in shared lib gets
generated.
This happened in GLib:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2917.
Diffstat (limited to 'docs/refman/generatormd.py')
0 files changed, 0 insertions, 0 deletions