aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-11-26 11:21:50 +0100
committerJakub Konka <kubkon@jakubkonka.com>2020-11-26 11:50:09 +0100
commit7e8f7da3ec0a841d7d009f9f55dad22235b418d3 (patch)
tree6de09fdabffd4662d4cf6cfec17c1ad751537a0f /src/main.zig
parent64eae8f39240109ce23c21e975c1d29191b4692a (diff)
downloadzig-7e8f7da3ec0a841d7d009f9f55dad22235b418d3.tar.gz
zig-7e8f7da3ec0a841d7d009f9f55dad22235b418d3.zip
stage2 macho: rename inodes to prevent SIGKILL
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 595faed88f..8de94e1abd 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1727,6 +1727,9 @@ fn buildOutputType(
error.SemanticAnalyzeFail => process.exit(1),
else => |e| return e,
};
+ if (output_mode == .Exe) {
+ try comp.makeBinFileExecutable();
+ }
if (build_options.is_stage1 and comp.stage1_lock != null and watch) {
warn("--watch is not recommended with the stage1 backend; it leaks memory and is not capable of incremental compilation", .{});