| ... | @@ -5478,10 +5478,12 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi | ... | @@ -5478,10 +5478,12 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi |
| 5478 | error.SemanticAnalyzeFail => process.exit(2), | 5478 | error.SemanticAnalyzeFail => process.exit(2), |
| 5479 | else => |e| return e, | 5479 | else => |e| return e, |
| 5480 | }; | 5480 | }; |
| 5481 | try comp.makeBinFileExecutable(); | | |
| 5482 | | 5481 | |
| 5483 | const emit = comp.bin_file.?.emit; | 5482 | // Since incremental compilation isn't done yet, we use cache_mode = whole |
| 5484 | child_argv.items[argv_index_exe] = try emit.directory.join(arena, &.{emit.sub_path}); | 5483 | // above, and thus the output file is already closed. |
| | 5484 | //try comp.makeBinFileExecutable(); |
| | 5485 | child_argv.items[argv_index_exe] = |
| | 5486 | try local_cache_directory.join(arena, &.{comp.cache_use.whole.bin_sub_path.?}); |
| 5485 | | 5487 | |
| 5486 | break :argv child_argv.items; | 5488 | break :argv child_argv.items; |
| 5487 | }; | 5489 | }; |