| ... | @@ -474,6 +474,10 @@ pub const File = struct { | ... | @@ -474,6 +474,10 @@ pub const File = struct { |
| 474 | try fs.cwd().copyFile(cached_pp_file_path, fs.cwd(), full_out_path, .{}); | 474 | try fs.cwd().copyFile(cached_pp_file_path, fs.cwd(), full_out_path, .{}); |
| 475 | return; | 475 | return; |
| 476 | } | 476 | } |
| | 477 | |
| | 478 | if (base.options.output_mode == .Obj) |
| | 479 | return; |
| | 480 | |
| 477 | const use_lld = build_options.have_llvm and base.options.use_lld; | 481 | const use_lld = build_options.have_llvm and base.options.use_lld; |
| 478 | if (use_lld and base.options.output_mode == .Lib and base.options.link_mode == .Static) { | 482 | if (use_lld and base.options.output_mode == .Lib and base.options.link_mode == .Static) { |
| 479 | return base.linkAsArchive(comp); | 483 | return base.linkAsArchive(comp); |