zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 77544683ddd5f4d577ecc9c92a2b52a276aed2a6 (tree)
parent 34b314509919d85a6b6ff9de3bbdad2fec6b2b78
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 31 Jan 2023 13:38:03 -0700

fix init-exe, init-lib templates

Diffstat:
Mlib/init-exe/build.zig | 2+-
Mlib/init-lib/build.zig | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/init-exe/build.zig b/lib/init-exe/build.zig @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void { // Standard optimization options allow the person running `zig build` to select // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not // set a preferred release mode, allowing the user to decide how to optimize. - const optimize = b.standardOptimizeOption(); + const optimize = b.standardOptimizeOption(.{}); const exe = b.addExecutable(.{ .name = "$", diff --git a/lib/init-lib/build.zig b/lib/init-lib/build.zig @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void { // Standard optimization options allow the person running `zig build` to select // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not // set a preferred release mode, allowing the user to decide how to optimize. - const optimize = b.standardOptimizeOption(); + const optimize = b.standardOptimizeOption(.{}); const lib = b.addStaticLibrary(.{ .name = "$",