aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/dependencyFromBuildZig/build.zig
blob: f02140327f794fd83fc88788828ebc093fc58034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"));
}