Skip to content

Commit

Permalink
add rebuild flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciremun committed Jan 7, 2024
1 parent 5f711e4 commit d3a3382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nobuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static inline void bake_utils_dll()

static void build_freedom_dll()
{
if (!PATH_EXISTS("utils.dll") || is_path1_modified_after_path2("freedom/utils.cs", "utils.dll"))
if (!PATH_EXISTS("utils.dll") || rebuild_flag || is_path1_modified_after_path2("freedom/utils.cs", "utils.dll"))
{
CMD("csc", "/unsafe", "/nologo", "/optimize", "/target:library", "/out:utils.dll", "freedom/utils.cs");
bake_utils_dll();
Expand All @@ -139,7 +139,7 @@ static void build_freedom_dll()
}
},
DLL_DIRS);
if (!PATH_EXISTS("freedom_injector.exe") || is_path1_modified_after_path2("injector.cpp", "freedom_injector.exe"))
if (!PATH_EXISTS("freedom_injector.exe") || rebuild_flag || is_path1_modified_after_path2("injector.cpp", "freedom_injector.exe"))
{
CMD("cl", "/DWIN32_LEAN_AND_MEAN", "/DNDEBUG", "/DUNICODE", "/std:c++latest", "/MT", "/O2", "/EHsc", "/nologo", "/Fe:freedom_injector.exe", "injector.cpp", "/link", "/MACHINE:x86");
}
Expand Down
Binary file modified nobuild.exe
Binary file not shown.

0 comments on commit d3a3382

Please sign in to comment.