Skip to content

Commit d9122d6

Browse files
committed
fix: wrong file for hash
1 parent 3b1a901 commit d9122d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp2

+3-3
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ unix_build_build_script_cmd: (compiler_cmd: std::string, info: cpp2b_source_buil
702702
build_build_script: (info: cpp2b_source_build_info) -> build_binary_result = {
703703
compiler :== cpp2b::compiler();
704704
bin_outpath := fs::absolute(".cache/cpp2/bin") / fs::path(info.src).replace_extension(shared_library_extension());
705-
bin_cache_file_path := fs::path(bin_outpath.generic_string() + ".cpp2bcache")
705+
bin_cache_file_path: fs::path = bin_outpath.generic_string() + ".cpp2bcache";
706706
log_path := fs::absolute(".cache/cpp2/log/compile") / fs::path(info.src).replace_extension(".log");
707707
ensure_dir(log_path.parent_path());
708708
ensure_dir(bin_outpath.parent_path());
@@ -879,7 +879,7 @@ do_build: (targets: std::vector<std::string>) -> (stuff: full_build_info, exit_c
879879
prev_file_hashes[fs::path(p)] = path_hash;
880880
}
881881

882-
for file_hashes do(inout entry) {
882+
for file_hashes do(entry) {
883883
p := entry.first;
884884
hash := entry.second;
885885

@@ -895,7 +895,7 @@ do_build: (targets: std::vector<std::string>) -> (stuff: full_build_info, exit_c
895895
}
896896

897897
hash_data_file.close();
898-
hash_data_file.open(".cache/cpp2/.data", std::ios::binary | std::ios::out | std::ios::trunc);
898+
hash_data_file.open(".cache/cpp2/.hash", std::ios::binary | std::ios::out | std::ios::trunc);
899899

900900
for file_hashes do(inout entry) {
901901
p := entry.first.generic_string();

0 commit comments

Comments
 (0)