We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0820aa4 commit 1b4ea80Copy full SHA for 1b4ea80
test/standalone/dependencyFromBuildZig/build.zig
@@ -6,11 +6,7 @@ pub fn build(b: *std.Build) void {
6
7
const dep1 = b.dependency("other", .{});
8
9
- const build_runner = @import("root");
10
- const deps = build_runner.dependencies;
11
- const zon_decls = @typeInfo(deps.packages).Struct.decls;
12
- const pkg = @field(deps.packages, zon_decls[0].name);
13
- const dep2 = b.dependencyFromBuildZig(pkg.build_zig, .{});
+ const dep2 = b.dependencyFromBuildZig(@import("other"), .{});
14
15
std.debug.assert(dep1.module("add") == dep2.module("add"));
16
}
0 commit comments