| ... | @@ -823,7 +823,12 @@ pub fn setVerboseCC(compile: *Compile, value: bool) void { | ... | @@ -823,7 +823,12 @@ pub fn setVerboseCC(compile: *Compile, value: bool) void { |
| 823 | | 823 | |
| 824 | pub fn setLibCFile(compile: *Compile, libc_file: ?LazyPath) void { | 824 | pub fn setLibCFile(compile: *Compile, libc_file: ?LazyPath) void { |
| 825 | const b = compile.step.owner; | 825 | const b = compile.step.owner; |
| 826 | compile.libc_file = if (libc_file) |f| f.dupe(b) else null; | 826 | if (libc_file) |f| { |
| | 827 | compile.libc_file = f.dupe(b); |
| | 828 | f.addStepDependencies(&compile.step); |
| | 829 | } else { |
| | 830 | compile.libc_file = null; |
| | 831 | } |
| 827 | } | 832 | } |
| 828 | | 833 | |
| 829 | fn getEmittedFileGeneric(compile: *Compile, output_file: *?*GeneratedFile) LazyPath { | 834 | fn getEmittedFileGeneric(compile: *Compile, output_file: *?*GeneratedFile) LazyPath { |