authorgravatar for nektromc@gmail.comMeghan <nektromc@gmail.com> 2021-03-05 19:13:05-08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-03-05 19:13:05-08:00
log9f722f43ac449caa0e09c1b7bb1bad0581ef323d
tree65e8f952d9d7eb7b4425a2eedd476f1fcc0b23c9
parentef3adbdb362d5511b05543567c58c5bdfb0cf093
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std/special: init-exe,lib make import(std) its own decl (#8160)

std/special: init-exe,lib make import(std) its own decl

2 files changed, 7 insertions(+), 4 deletions(-)

lib/std/special/init-exe/build.zig+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1const Builder = @import("std").build.Builder;1const std = @import("std");
22
3pub fn build(b: *Builder) void {3pub fn build(b: *std.build.Builder) void {
4 // Standard target options allows the person running `zig build` to choose4 // Standard target options allows the person running `zig build` to choose
5 // what target to build for. Here we do not override the defaults, which5 // 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 options6 // 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 @@
1const Builder = @import("std").build.Builder;1const std = @import("std");
22
3pub fn build(b: *Builder) void {3pub 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();