diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2022-05-22 15:25:38 +0200 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2022-05-22 15:25:38 +0200 |
| commit | 3cb6428da6bc934bc78f5a4e543083dc287be760 (patch) | |
| tree | e33dc8967fa360b91d084482ace3cb17acf32d32 /build.zig | |
| parent | ded490d3ddc7310474940347214bf3fc303cbc25 (diff) | |
| download | river-3cb6428da6bc934bc78f5a4e543083dc287be760.tar.gz river-3cb6428da6bc934bc78f5a4e543083dc287be760.tar.xz | |
build: add -Dstrip and -Dpie build options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -16,6 +16,9 @@ pub fn build(b: *zbs.Builder) !void { const target = b.standardTargetOptions(.{}); const mode = b.standardReleaseOptions(); + const strip = b.option(bool, "strip", "Omit debug information") orelse false; + const pie = b.option(bool, "pie", "Build a Position Independent Executable") orelse false; + const man_pages = b.option( bool, "man-pages", @@ -123,6 +126,8 @@ pub fn build(b: *zbs.Builder) !void { addServerDeps(river, scanner); + river.strip = strip; + river.pie = pie; river.install(); } @@ -143,6 +148,8 @@ pub fn build(b: *zbs.Builder) !void { scanner.addCSource(riverctl); + riverctl.strip = strip; + riverctl.pie = pie; riverctl.install(); } @@ -163,6 +170,8 @@ pub fn build(b: *zbs.Builder) !void { scanner.addCSource(rivertile); + rivertile.strip = strip; + rivertile.pie = pie; rivertile.install(); } |
