We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bace0f commit c748eb2Copy full SHA for c748eb2
lib/std/Build/Step/Compile.zig
@@ -823,7 +823,12 @@ pub fn setVerboseCC(compile: *Compile, value: bool) void {
823
824
pub fn setLibCFile(compile: *Compile, libc_file: ?LazyPath) void {
825
const b = compile.step.owner;
826
- compile.libc_file = if (libc_file) |f| f.dupe(b) else null;
+ if (libc_file) |f| {
827
+ compile.libc_file = f.dupe(b);
828
+ f.addStepDependencies(&compile.step);
829
+ } else {
830
+ compile.libc_file = null;
831
+ }
832
}
833
834
fn getEmittedFileGeneric(compile: *Compile, output_file: *?*GeneratedFile) LazyPath {
0 commit comments