| author | |
| committer | |
| log | 9f722f43ac449caa0e09c1b7bb1bad0581ef323d |
| tree | 65e8f952d9d7eb7b4425a2eedd476f1fcc0b23c9 |
| parent | ef3adbdb362d5511b05543567c58c5bdfb0cf093 |
| signature |
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,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 | // Standard target options allows the person running `zig build` to choose | 4 | // Standard target options allows the person running `zig build` to choose |
| 5 | // what target to build for. Here we do not override the defaults, which | 5 | // what target to build for. Here we do not override the defaults, which |
| 6 | // means any target is allowed, and the default is native. Other options | 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,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 | const mode = b.standardReleaseOptions(); | 6 | const mode = b.standardReleaseOptions(); |
| 7 | |||
| 5 | const lib = b.addStaticLibrary("$", "src/main.zig"); | 8 | const lib = b.addStaticLibrary("$", "src/main.zig"); |
| 6 | lib.setBuildMode(mode); | 9 | lib.setBuildMode(mode); |
| 7 | lib.install(); | 10 | lib.install(); |