diff options
| author | Veikka Tuominen <git@vexu.eu> | 2021-09-19 11:51:32 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-20 20:50:55 -0700 |
| commit | 9a54ff72df5cc8631c467f3478117eb85a952ced (patch) | |
| tree | c303fa7cdde3c8165d034da1ed8357175c260e3d /src/Compilation.zig | |
| parent | 1ad905c71e0896295d4781853cd577bbe1b4111a (diff) | |
| download | zig-9a54ff72df5cc8631c467f3478117eb85a952ced.tar.gz zig-9a54ff72df5cc8631c467f3478117eb85a952ced.zip | |
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..55cc9d0867 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) 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 }); |
