Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/sources/test/resources/reference/tools/BUILD.kts
blob: 1fba4dd7b05b3a00cc2907610b2ca138a87ba41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// The tools/BUILD.kts of the reference module.
zig.bin("tool") {                            // zig targets have no compiler and no standard
    sources("main.zig")                      // the root file
    depends("//core/:core")
    targetTriple("x86_64-unknown-linux-gnu", "aarch64-apple-darwin")
    args("--verbose")
    if (BUILD_MODE == BuildMode.RELEASE) optimize = ZigOptimize.SAFE   // SAFE, SPEED, SIZE
}

zig.staticlib("zig-lib") {
    sources("lib.zig")
    headers("include")                       // the C header it offers
}