| ... | @@ -531,6 +531,10 @@ pub const File = struct { | ... | @@ -531,6 +531,10 @@ pub const File = struct { |
| 531 | try fs.cwd().copyFile(cached_pp_file_path, fs.cwd(), full_out_path, .{}); | 531 | try fs.cwd().copyFile(cached_pp_file_path, fs.cwd(), full_out_path, .{}); |
| 532 | return; | 532 | return; |
| 533 | } | 533 | } |
| | 534 | |
| | 535 | if (base.options.output_mode == .Obj) |
| | 536 | return; |
| | 537 | |
| 534 | const use_lld = build_options.have_llvm and base.options.use_lld; | 538 | const use_lld = build_options.have_llvm and base.options.use_lld; |
| 535 | if (use_lld and base.options.output_mode == .Lib and base.options.link_mode == .Static) { | 539 | if (use_lld and base.options.output_mode == .Lib and base.options.link_mode == .Static) { |
| 536 | return base.linkAsArchive(comp); | 540 | return base.linkAsArchive(comp); |