aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-06-18 23:49:21 +0500
committerEric Joldasov <bratishkaerik@landless-city.net>2024-12-18 01:48:54 +0500
commit6168b8ef86e2ca262585387d12166123842773d1 (patch)
tree52d0003c1350df2ab579d3a58ddbb3c57f9f80d6 /test/src
parent0bb93ca053f9520a396a652e929d2cc6358ec5be (diff)
downloadzig-6168b8ef86e2ca262585387d12166123842773d1.tar.gz
zig-6168b8ef86e2ca262585387d12166123842773d1.zip
std.Build: add API to create Compile steps from existing module
This commit amends `std.Build.ExecutableOptions` etc to have a new field, `root_module`, which allows artifacts to be created whose root module is an existing `*Module` rather than a freshly constructed one. This API can be far more versatile, allowing construction of complex module graphs before creating any compile steps, and therefore also allowing easy reuse of modules. The fields which correspond to module options, such as `root_source_file`, are all considered deprecated. They may not be populated at the same time as the `root_module` field. In the next release cycle, these deprecated fields will be removed, and the `root_module` field made non-optional.
Diffstat (limited to 'test/src')
0 files changed, 0 insertions, 0 deletions