aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Module.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-06-18 19:53:55 +0500
committerEric Joldasov <bratishkaerik@landless-city.net>2024-12-18 01:47:50 +0500
commitfaafeb51afb9edf5a1f11cb3ab1f9091f07344c7 (patch)
treebc6c51c3e6f5311847f7830c7175f06be9d384a3 /lib/std/Build/Module.zig
parent3d393dba6fc06cea3508aaa3db9d49042663367e (diff)
downloadzig-faafeb51afb9edf5a1f11cb3ab1f9091f07344c7.tar.gz
zig-faafeb51afb9edf5a1f11cb3ab1f9091f07344c7.zip
std.Build.Step.Compile: change `root_module` field type to `*Module`
This commit changes the `root_module` field of `std.Build.Step.Compile` to be a `*Module` rather than a `Module`. This is a breaking change, but an incredibly minor one (the full potential extent of the breakage can be seen in the modified standalone test). This change will be necessary for an upcoming improvement, so it was convenient to make it here.
Diffstat (limited to 'lib/std/Build/Module.zig')
-rw-r--r--lib/std/Build/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build/Module.zig b/lib/std/Build/Module.zig
index 0e421280f0..cc7c5a65c0 100644
--- a/lib/std/Build/Module.zig
+++ b/lib/std/Build/Module.zig
@@ -430,7 +430,7 @@ pub const DependencyIterator = struct {
if (!it.chase_dyn_libs and compile.isDynamicLibrary()) continue;
it.set.put(it.allocator, .{
- .module = &compile.root_module,
+ .module = compile.root_module,
.compile = compile,
}, "root") catch @panic("OOM");
},