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
signature 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 @@
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 {
44 // Standard target options allows the person running `zig build` to choose
55 // what target to build for. Here we do not override the defaults, which
66 // 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 @@
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.
46 const mode = b.standardReleaseOptions();
7
58 const lib = b.addStaticLibrary("$", "src/main.zig");
69 lib.setBuildMode(mode);
710 lib.install();