mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
build.zig: change -Dpie option default to be target-dependant
`null` here indicates to Zig that it should decide for itself whether to enable PIE or not. On some targets (like macOS or OpenBSD), it is required and so current default will cause unneccessary build error. Behavior for `-Dpie=false` and `-Dpie=true` is not changed. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
parent
f4e4694612
commit
e43d22ba3f
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
|
||||||
const target = b.standardTargetOptions(.{});
|
const target = b.standardTargetOptions(.{});
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
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: target-dependant)");
|
||||||
const strip = b.option(bool, "strip", "Strip debugging info (by default false)") orelse false;
|
const strip = b.option(bool, "strip", "Strip debugging info (by default false)") orelse false;
|
||||||
|
|
||||||
const main_mod = b.createModule(.{
|
const main_mod = b.createModule(.{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue