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.
This commit is contained in:
mlugg
2024-06-18 19:53:55 +05:00
committed by Eric Joldasov
parent 3d393dba6f
commit faafeb51af
4 changed files with 8 additions and 6 deletions

View File

@@ -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");
},