fix build_target(objects: ...) documentation

The documentation for build_target(...) does not list file or str as
the possible types for the "objects" keyword argument, even though in
theory the argument is meant for prebuild object files that are part
of the sources.

Of course that is only the theory, because an ExtractedObjects object
is probably used a lot more than a file in the source tree.  But
at least make the reference manual's typing information accurate.
pull/11198/head
Paolo Bonzini 2 years ago committed by Dylan Baker
parent 99713ae257
commit 9e1baebb23
  1. 8
      docs/yaml/functions/_build_target_base.yaml

@ -191,11 +191,11 @@ kwargs:
(but *not* before that). On Windows, this argument has no effect.
objects:
type: list[extracted_obj]
type: list[extracted_obj | file | str]
description: |
List of prebuilt object files (usually for third party
products you don't have source to) that should be linked in this
target, **never** use this for object files that you build yourself.
List of object files that should be linked in this target.
These can include third party products you don't have source to,
or object files produced by other build targets.
name_prefix:
type: str | list[void]

Loading…
Cancel
Save