From a656febccf6614008086bf124858826615924df7 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 18 Jun 2021 18:06:03 +0200 Subject: 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. --- docs/markdown/Reference-manual.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/markdown') 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 -- cgit v1.1