mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add debugf calls
This commit is contained in:
@@ -163,6 +163,8 @@ bool try_copy_executable_cache_internal(bool to_cache) {
|
|||||||
|
|
||||||
|
|
||||||
bool try_copy_executable_to_cache(void) {
|
bool try_copy_executable_to_cache(void) {
|
||||||
|
debugf("Cache: try_copy_executable_to_cache\n");
|
||||||
|
|
||||||
if (try_copy_executable_cache_internal(true)) {
|
if (try_copy_executable_cache_internal(true)) {
|
||||||
build_context.build_cache_data.copy_already_done = true;
|
build_context.build_cache_data.copy_already_done = true;
|
||||||
return true;
|
return true;
|
||||||
@@ -171,6 +173,8 @@ bool try_copy_executable_to_cache(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool try_copy_executable_from_cache(void) {
|
bool try_copy_executable_from_cache(void) {
|
||||||
|
debugf("Cache: try_copy_executable_from_cache\n");
|
||||||
|
|
||||||
if (try_copy_executable_cache_internal(false)) {
|
if (try_copy_executable_cache_internal(false)) {
|
||||||
build_context.build_cache_data.copy_already_done = true;
|
build_context.build_cache_data.copy_already_done = true;
|
||||||
return true;
|
return true;
|
||||||
@@ -384,6 +388,8 @@ write_cache:;
|
|||||||
char const *path_c = alloc_cstring(temporary_allocator(), files_path);
|
char const *path_c = alloc_cstring(temporary_allocator(), files_path);
|
||||||
gb_file_remove(path_c);
|
gb_file_remove(path_c);
|
||||||
|
|
||||||
|
debugf("Cache: updating %s\n", path_c);
|
||||||
|
|
||||||
gbFile f = {};
|
gbFile f = {};
|
||||||
defer (gb_file_close(&f));
|
defer (gb_file_close(&f));
|
||||||
gb_file_open_mode(&f, gbFileMode_Write, path_c);
|
gb_file_open_mode(&f, gbFileMode_Write, path_c);
|
||||||
@@ -397,6 +403,8 @@ write_cache:;
|
|||||||
char const *path_c = alloc_cstring(temporary_allocator(), args_path);
|
char const *path_c = alloc_cstring(temporary_allocator(), args_path);
|
||||||
gb_file_remove(path_c);
|
gb_file_remove(path_c);
|
||||||
|
|
||||||
|
debugf("Cache: updating %s\n", path_c);
|
||||||
|
|
||||||
gbFile f = {};
|
gbFile f = {};
|
||||||
defer (gb_file_close(&f));
|
defer (gb_file_close(&f));
|
||||||
gb_file_open_mode(&f, gbFileMode_Write, path_c);
|
gb_file_open_mode(&f, gbFileMode_Write, path_c);
|
||||||
@@ -410,6 +418,8 @@ write_cache:;
|
|||||||
char const *path_c = alloc_cstring(temporary_allocator(), env_path);
|
char const *path_c = alloc_cstring(temporary_allocator(), env_path);
|
||||||
gb_file_remove(path_c);
|
gb_file_remove(path_c);
|
||||||
|
|
||||||
|
debugf("Cache: updating %s\n", path_c);
|
||||||
|
|
||||||
gbFile f = {};
|
gbFile f = {};
|
||||||
defer (gb_file_close(&f));
|
defer (gb_file_close(&f));
|
||||||
gb_file_open_mode(&f, gbFileMode_Write, path_c);
|
gb_file_open_mode(&f, gbFileMode_Write, path_c);
|
||||||
|
|||||||
Reference in New Issue
Block a user