diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-03-16 20:41:46 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-03-18 21:53:26 +0100 |
| commit | f1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712 (patch) | |
| tree | 29533cb639a0c3fff0889f8d1233ef1a5cbafc8c /build.zig | |
| parent | 266c81322e4e7b6c0b7f0a7fe9873b092aef7f54 (diff) | |
| download | zig-f1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712.tar.gz zig-f1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712.zip | |
macho: add hot-code swapping poc
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |
