mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
parent
d0d064aaf9
commit
a4484f27f3
2 changed files with 2 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -9,7 +9,7 @@ ZIG ?= zig
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR ?= ${PREFIX}/bin
|
BINDIR ?= ${PREFIX}/bin
|
||||||
MANDIR ?= ${PREFIX}/share/man/man1
|
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/')
|
NCDU_VERSION=$(shell grep 'program_version = "' src/main.zig | sed -e 's/^.*"\(.\+\)".*$$/\1/')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,7 @@ const std = @import("std");
|
||||||
|
|
||||||
pub fn build(b: *std.Build) void {
|
pub fn build(b: *std.Build) void {
|
||||||
const target = b.standardTargetOptions(.{});
|
const target = b.standardTargetOptions(.{});
|
||||||
const optimize = b.standardOptimizeOption(.{
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
.preferred_optimize_mode = .ReleaseFast,
|
|
||||||
});
|
|
||||||
|
|
||||||
const pie = b.option(bool, "pie", "Build with PIE support (by default false)") orelse false;
|
const pie = b.option(bool, "pie", "Build with PIE support (by default false)") orelse false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue