Build: remove preferred_optimize_mode

Fixes #238
This commit is contained in:
Yorhel 2024-04-25 14:15:43 +02:00
parent d0d064aaf9
commit a4484f27f3
2 changed files with 2 additions and 4 deletions

View file

@ -9,7 +9,7 @@ ZIG ?= zig
PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
MANDIR ?= ${PREFIX}/share/man/man1
ZIG_FLAGS ?= --release
ZIG_FLAGS ?= --release=fast
NCDU_VERSION=$(shell grep 'program_version = "' src/main.zig | sed -e 's/^.*"\(.\+\)".*$$/\1/')

View file

@ -5,9 +5,7 @@ const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{
.preferred_optimize_mode = .ReleaseFast,
});
const optimize = b.standardOptimizeOption(.{});
const pie = b.option(bool, "pie", "Build with PIE support (by default false)") orelse false;