aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-09-05 07:49:18 -0400
committerXavier Claessens <xclaesse@gmail.com>2023-09-07 10:56:37 -0400
commitb2654b2d43089c933e66ab1d3dfb547caecfea71 (patch)
tree3ee812de1bccd87bfeab711634d6a37f2d72509e /data
parent025aea1dab4bcf9aafdd72acf48476d999a729b9 (diff)
downloadmeson-b2654b2d43089c933e66ab1d3dfb547caecfea71.zip
meson-b2654b2d43089c933e66ab1d3dfb547caecfea71.tar.gz
meson-b2654b2d43089c933e66ab1d3dfb547caecfea71.tar.bz2
Fix crash when installing a vala library and python sources
Installing python sources causes the python module to call create_install_data() before Ninja backends adds extra outputs to Vala targets. Target objects are supposed to be immutable, adding outputs that late is totally wrong. Add extra vala outputs immediately, but be careful because the main output is only added later in post_init(). Luckily the base class already puts a placeholder item in self.outputs for the main filename so we can just replace self.outputs[0] instead of replacing the whole list which would contain vala outputs at that stage. This is surprisingly what SharedLibrary was already doing.
Diffstat (limited to 'data')
-rw-r--r--data/test.schema.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/test.schema.json b/data/test.schema.json
index 98ae44e..b5f6aba 100644
--- a/data/test.schema.json
+++ b/data/test.schema.json
@@ -27,6 +27,7 @@
"shared_lib",
"python_lib",
"python_limited_lib",
+ "python_bytecode",
"pdb",
"implib",
"py_implib",