Skip to content

Commit

Permalink
fix: wrong file for hash
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Nov 27, 2024
1 parent 3b1a901 commit d9122d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp2
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ unix_build_build_script_cmd: (compiler_cmd: std::string, info: cpp2b_source_buil
build_build_script: (info: cpp2b_source_build_info) -> build_binary_result = {
compiler :== cpp2b::compiler();
bin_outpath := fs::absolute(".cache/cpp2/bin") / fs::path(info.src).replace_extension(shared_library_extension());
bin_cache_file_path := fs::path(bin_outpath.generic_string() + ".cpp2bcache")
bin_cache_file_path: fs::path = bin_outpath.generic_string() + ".cpp2bcache";
log_path := fs::absolute(".cache/cpp2/log/compile") / fs::path(info.src).replace_extension(".log");
ensure_dir(log_path.parent_path());
ensure_dir(bin_outpath.parent_path());
Expand Down Expand Up @@ -879,7 +879,7 @@ do_build: (targets: std::vector<std::string>) -> (stuff: full_build_info, exit_c
prev_file_hashes[fs::path(p)] = path_hash;
}

for file_hashes do(inout entry) {
for file_hashes do(entry) {
p := entry.first;
hash := entry.second;

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

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

for file_hashes do(inout entry) {
p := entry.first.generic_string();
Expand Down

0 comments on commit d9122d6

Please sign in to comment.