aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/sourceset.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-03-13 21:02:52 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-03-13 21:23:36 -0400
commita5bb65437722874bfca5d7ea3db542a5482385eb (patch)
treeee9b2b47fc4eabb60d27a90d07ff7ef9c9a0eab3 /mesonbuild/modules/sourceset.py
parent4680c09aac3dc97436357ba6c8a7ac64132a1830 (diff)
downloadmeson-a5bb65437722874bfca5d7ea3db542a5482385eb.zip
meson-a5bb65437722874bfca5d7ea3db542a5482385eb.tar.gz
meson-a5bb65437722874bfca5d7ea3db542a5482385eb.tar.bz2
gnome module: fix crash due to misused function while generating gir command
In commit 68e684d51f1e469e0d9f4b499ffda15146cad98a the _get_link_args function was modified from returning a list[str] of arguments, to a tuple of both that and a modified copy of the entire target's current/enhanced dependencies (why not just the new ones? I don't know). However, the existing use of the function was not adapted to this change, and tried to turn this entire tuple into a node of the command line. Tuples cannot flatten to lists, and mesonlib.File or HoldableObjects don't make good command line arguments. As a result we errored out with: ERROR: Argument (['-L/path/to/builddir/', '--extra-library=foo'], [<SharedLibrary 25a6634@@foo@sha: foo>, <SharedLibrary 25a6634@@foo@sha: foo>, <SharedLibrary 25a6634@@foo@sha: foo>]) in "command" is invalid Split out the flags and the dependencies and update the former while replacing the latter.
Diffstat (limited to 'mesonbuild/modules/sourceset.py')
0 files changed, 0 insertions, 0 deletions