| ... | @@ -114,7 +114,6 @@ pub fn createEmpty( | ... | @@ -114,7 +114,6 @@ pub fn createEmpty( |
| 114 | const use_lld = build_options.have_llvm and comp.config.use_lld; | 114 | const use_lld = build_options.have_llvm and comp.config.use_lld; |
| 115 | const use_llvm = comp.config.use_llvm; | 115 | const use_llvm = comp.config.use_llvm; |
| 116 | const output_mode = comp.config.output_mode; | 116 | const output_mode = comp.config.output_mode; |
| 117 | const link_mode = comp.config.link_mode; | | |
| 118 | | 117 | |
| 119 | // These are caught by `Compilation.Config.resolve`. | 118 | // These are caught by `Compilation.Config.resolve`. |
| 120 | assert(!use_lld); | 119 | assert(!use_lld); |
| ... | @@ -123,7 +122,6 @@ pub fn createEmpty( | ... | @@ -123,7 +122,6 @@ pub fn createEmpty( |
| 123 | const file = try emit.directory.handle.createFile(emit.sub_path, .{ | 122 | const file = try emit.directory.handle.createFile(emit.sub_path, .{ |
| 124 | // Truncation is done on `flush`. | 123 | // Truncation is done on `flush`. |
| 125 | .truncate = false, | 124 | .truncate = false, |
| 126 | .mode = link.File.determineMode(use_lld, output_mode, link_mode), | | |
| 127 | }); | 125 | }); |
| 128 | errdefer file.close(); | 126 | errdefer file.close(); |
| 129 | | 127 | |