mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
SPU LLVM: Ensure programs are written to disk irregardless of failure
This commit is contained in:
parent
ac5d907002
commit
47fe955d35
1 changed files with 8 additions and 0 deletions
|
@ -2638,6 +2638,14 @@ public:
|
||||||
fs::file(m_spurt->get_cache_path() + "spu-ir.log", fs::write + fs::append).write(log);
|
fs::file(m_spurt->get_cache_path() + "spu-ir.log", fs::write + fs::append).write(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (auto& cache = g_fxo->get<spu_cache>())
|
||||||
|
{
|
||||||
|
if (add_to_file)
|
||||||
|
{
|
||||||
|
cache.add(func);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fmt::throw_exception("Compilation failed");
|
fmt::throw_exception("Compilation failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue