mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Properly handling lib failures
This commit is contained in:
parent
293387e41f
commit
d67e03f137
3 changed files with 22 additions and 3 deletions
|
@ -6486,7 +6486,16 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
|||
}
|
||||
}
|
||||
|
||||
BeLibManager::Get()->Finish();
|
||||
auto libManager = BeLibManager::Get();
|
||||
libManager->Finish();
|
||||
if (!libManager->mErrors.IsEmpty())
|
||||
{
|
||||
for (auto& error : libManager->mErrors)
|
||||
mPassInstance->Fail(error);
|
||||
// We need to rebuild everything just to force that lib to get repopulated
|
||||
mOptions.mForceRebuildIdx++;
|
||||
}
|
||||
libManager->mErrors.Clear();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue