zig/test/standalone/dependencyFromBuildZig/build.zig
Meghan Denny 1b4ea80654
do more robust import
Co-authored-by: Carl Åstholm <carl@astholm.se>
2024-04-18 11:24:42 -07:00

12 lines
325 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Test it");
b.default_step = test_step;
const dep1 = b.dependency("other", .{});
const dep2 = b.dependencyFromBuildZig(@import("other"), .{});
std.debug.assert(dep1.module("add") == dep2.module("add"));
}