Commit a418c59546

Andrew Kelley <andrew@ziglang.org>
2022-02-03 06:13:45
link.MachO: fix merge conflict artifact
This happened from cherry-picking bug fixes from master branch.
1 parent a0cd4c0
Changed files (1)
src
src/link/MachO.zig
@@ -382,7 +382,7 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO {
     // ABI such as aarch64-ios-simulator, etc.
     const requires_adhoc_codesig = cpu_arch == .aarch64 and (os_tag == .macos or abi == .simulator);
     const use_stage1 = build_options.is_stage1 and options.use_stage1;
-    const needs_prealloc = !(use_stage1 or options.cache_mode == .whole);
+    const needs_prealloc = !use_stage1;
 
     self.* = .{
         .base = .{