Build check if header chage for rebuild
This commit is contained in:
parent
eb4020a4ee
commit
4a57aa1520
10
build.cpp
10
build.cpp
@ -96,6 +96,16 @@ int compile_src_dir()
|
||||
obj_dir.dirs.push_back(OBJ_DIR / i);
|
||||
}
|
||||
|
||||
nob_directory inc_dir = get_all_files_in_dir(INC_DIR);
|
||||
for (size_t i = 0; i < inc_dir.files.size(); i++)
|
||||
{
|
||||
if (check_if_rebuild(inc_dir.files[i], BUILD_FILE))
|
||||
{
|
||||
clear_build_dir(true, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (auto &&i : obj_dir.dirs)
|
||||
{
|
||||
std::filesystem::create_directory(i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user