@@ -2021,7 +2021,7 @@ NOBDEF int nob_needs_rebuild(const char *output_path, const char **input_paths,
20212021 nob_log (NOB_ERROR , "could not stat %s: %s" , output_path , strerror (errno ));
20222022 return -1 ;
20232023 }
2024- int output_path_time = statbuf .st_mtime ;
2024+ time_t output_path_time = statbuf .st_mtime ;
20252025
20262026 for (size_t i = 0 ; i < input_paths_count ; ++ i ) {
20272027 const char * input_path = input_paths [i ];
@@ -2030,7 +2030,7 @@ NOBDEF int nob_needs_rebuild(const char *output_path, const char **input_paths,
20302030 nob_log (NOB_ERROR , "could not stat %s: %s" , input_path , strerror (errno ));
20312031 return -1 ;
20322032 }
2033- int input_path_time = statbuf .st_mtime ;
2033+ time_t input_path_time = statbuf .st_mtime ;
20342034 // NOTE: if even a single input_path is fresher than output_path that's 100% rebuild
20352035 if (input_path_time > output_path_time ) return 1 ;
20362036 }
@@ -2550,6 +2550,7 @@ NOBDEF char *nob_temp_running_executable_path(void)
25502550 Using single String Builder in nob__walk_dir_opt_impl (by @Sinha-Ujjawal)
25512551 Add tcc to nob_cc_*() and NOB_REBUILD_URSELF() macros (by @vylsaz)
25522552 Fix building nob_read_entire_file() with tcc on windows (by @vylsaz)
2553+ Fix Y2038 in nob_needs_rebuild() (by @lnvitesace)
25532554 2.0.0 (2026-01-06) Remove minirent.h (by @rexim)
25542555 BACKWARD INCOMPATIBLE CHANGE!!! If you were using minirent.h from this library
25552556 just use it directly from https://github.com/tsoding/minirent
0 commit comments