mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00: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);
|
||||
}
|
||||
|
||||
if (auto& cache = g_fxo->get<spu_cache>())
|
||||
{
|
||||
if (add_to_file)
|
||||
{
|
||||
cache.add(func);
|
||||
}
|
||||
}
|
||||
|
||||
fmt::throw_exception("Compilation failed");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue