aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-03-16 20:41:46 +0100
committerJakub Konka <kubkon@jakubkonka.com>2023-03-18 21:53:26 +0100
commitf1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712 (patch)
tree29533cb639a0c3fff0889f8d1233ef1a5cbafc8c /build.zig
parent266c81322e4e7b6c0b7f0a7fe9873b092aef7f54 (diff)
downloadzig-f1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712.tar.gz
zig-f1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712.zip
macho: add hot-code swapping poc
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 303495f6ba..60172eaebd 100644
--- a/build.zig
+++ b/build.zig
@@ -152,6 +152,7 @@ pub fn build(b: *std.Build) !void {
if (only_install_lib_files)
return;
+ const entitlements = b.option([]const u8, "entitlements", "Path to entitlements file for hot-code swapping without sudo on macOS");
const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source");
const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse (tracy != null);
const tracy_allocation = b.option(bool, "tracy-allocation", "Include allocation information with Tracy data. Does nothing if -Dtracy is not provided") orelse (tracy != null);
@@ -173,6 +174,7 @@ pub fn build(b: *std.Build) !void {
exe.pie = pie;
exe.sanitize_thread = sanitize_thread;
exe.build_id = b.option(bool, "build-id", "Include a build id note") orelse false;
+ exe.entitlements = entitlements;
exe.install();
const compile_step = b.step("compile", "Build the self-hosted compiler");