Implement jit_compiler::check

Instead of checking file existence (because file may be damaged).
This commit is contained in:
Nekotekina 2020-04-07 16:09:47 +03:00
parent 7939160178
commit 91d80aa7b9
3 changed files with 17 additions and 1 deletions

View file

@ -1650,7 +1650,7 @@ extern void ppu_initialize(const ppu_module& info)
link_workload.emplace_back(obj_name, false);
// Check object file
if (fs::is_file(cache_path + obj_name + ".gz") || fs::is_file(cache_path + obj_name))
if (jit_compiler::check(cache_path + obj_name))
{
if (!jit)
{