aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-11-16 15:27:44 +0100
committerDylan Baker <dylan@pnwbakers.com>2024-12-19 09:25:20 -0800
commit15c2c9811411e5e84419bcee487fb3a84ac2756c (patch)
tree1237a185415fec8135fad99b0d7b73fb82d0d6e4 /docs/markdown/snippets
parent8b9846d9a9d29b427860891c9b699eb4305e348b (diff)
downloadmeson-15c2c9811411e5e84419bcee487fb3a84ac2756c.zip
meson-15c2c9811411e5e84419bcee487fb3a84ac2756c.tar.gz
meson-15c2c9811411e5e84419bcee487fb3a84ac2756c.tar.bz2
introspect: add machine to target_sources
Even though the "targets" introspection info already includes the command line arguments used to invoke the compiler, this is not enough to correlated with the "compilers" introspection info and get extra information from there. Together with the existing "language" key, adding a "machine" key is enough to identify completely an entry in the compilers info. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/introspect_machine.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/introspect_machine.md b/docs/markdown/snippets/introspect_machine.md
new file mode 100644
index 0000000..9b19bd6
--- /dev/null
+++ b/docs/markdown/snippets/introspect_machine.md
@@ -0,0 +1,5 @@
+## "machine" entry in target introspection data
+
+The JSON data returned by `meson introspect --targets` now has a `machine`
+entry in each `target_sources` block. The new entry can be one of `build`
+or `host` for compiler-built targets, or absent for `custom_target` targets.