aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-06-18 18:06:03 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-22 10:40:38 +0200
commita656febccf6614008086bf124858826615924df7 (patch)
tree53a896814e6e6055a45570be90a003aa76e48d76 /docs
parentd729ea3f6936dd7ea68a41cf178ee6a9afcf0ddd (diff)
downloadmeson-a656febccf6614008086bf124858826615924df7.zip
meson-a656febccf6614008086bf124858826615924df7.tar.gz
meson-a656febccf6614008086bf124858826615924df7.tar.bz2
extract_objects: test and document using the result in a custom_target
QEMU would like to use the result of extract_objects in a custom_target; examples are using objcopy, or using the object files as the key to look up command line arguments in compile_commands.json. This is slightly peculiar and not covered by the test suite, but it works; in order to avoid regressions, add a test case and document it.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 18f30b3..f3f87cc 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -2552,7 +2552,9 @@ module](#shared_module).
object files generated for those source files. This is typically used
to take single object files and link them to unit tests or to compile
some source files with custom flags. To use the object file(s)
- in another build target, use the `objects:` keyword argument.
+ in another build target, use the [`objects:`](#executable) keyword
+ argument or include them in the command line of a
+ [`custom_target`](#custom_target)`.
- `full_path()`: returns a full path pointing to the result target file.
NOTE: In most cases using the object itself will do the same job as