diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-21 00:01:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-21 00:01:30 -0400 |
| commit | 5269cbea202c6a81108390f4c47bc8a04fc6d1ff (patch) | |
| tree | a95896bf83bb427953a6a33d037698e30c05d8f8 /src/Compilation.zig | |
| parent | 1ad905c71e0896295d4781853cd577bbe1b4111a (diff) | |
| parent | 0c74ce1156d6a967cd089cd4657575a3e22bb782 (diff) | |
| download | zig-5269cbea202c6a81108390f4c47bc8a04fc6d1ff.tar.gz zig-5269cbea202c6a81108390f4c47bc8a04fc6d1ff.zip | |
Merge pull request #9797 from Vexu/stage2
stage2: implement cImport
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index c1dfe91dc2..53e643acb8 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2644,7 +2644,7 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { const dep_basename = std.fs.path.basename(out_dep_path); try man.addDepFilePost(zig_cache_tmp_dir, dep_basename); - try comp.stage1_cache_manifest.addDepFilePost(zig_cache_tmp_dir, dep_basename); + if (build_options.is_stage1 and comp.bin_file.options.use_stage1) try comp.stage1_cache_manifest.addDepFilePost(zig_cache_tmp_dir, dep_basename); const digest = man.final(); const o_sub_path = try std.fs.path.join(arena, &[_][]const u8{ "o", &digest }); |
