| author | |
| committer | |
| log | 9f722f43ac449caa0e09c1b7bb1bad0581ef323d |
| tree | 65e8f952d9d7eb7b4425a2eedd476f1fcc0b23c9 |
| parent | ef3adbdb362d5511b05543567c58c5bdfb0cf093 |
| signature | Signed by PGP key 4AEE18F83AFDEB23 |
std/special: init-exe,lib make import(std) its own decl2 files changed, 7 insertions(+), 4 deletions(-)
lib/std/special/init-exe/build.zig+2-2| ... | ... | @@ -1,6 +1,6 @@ |
| 1 | const Builder = @import("std").build.Builder; | |
| 1 | const std = @import("std"); | |
| 2 | 2 | |
| 3 | pub fn build(b: *Builder) void { | |
| 3 | pub fn build(b: *std.build.Builder) void { | |
| 4 | 4 | // Standard target options allows the person running `zig build` to choose |
| 5 | 5 | // what target to build for. Here we do not override the defaults, which |
| 6 | 6 | // means any target is allowed, and the default is native. Other options |
lib/std/special/init-lib/build.zig+5-2| ... | ... | @@ -1,7 +1,10 @@ |
| 1 | const Builder = @import("std").build.Builder; | |
| 1 | const std = @import("std"); | |
| 2 | 2 | |
| 3 | pub fn build(b: *Builder) void { | |
| 3 | pub fn build(b: *std.build.Builder) void { | |
| 4 | // Standard release options allow the person running `zig build` to select | |
| 5 | // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. | |
| 4 | 6 | const mode = b.standardReleaseOptions(); |
| 7 | ||
| 5 | 8 | const lib = b.addStaticLibrary("$", "src/main.zig"); |
| 6 | 9 | lib.setBuildMode(mode); |
| 7 | 10 | lib.install(); |