1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Put a lock around GetOutputFileNames

This commit is contained in:
Brian Fiete 2022-05-13 13:24:32 -07:00
parent d62a78fe74
commit 2c1d38d45f
3 changed files with 14 additions and 1 deletions

View file

@ -10400,10 +10400,16 @@ namespace IDE
return;
BfCompiler bfCompiler = mBfBuildCompiler;
BfSystem bfSystem = mBfBuildSystem;
var bfProject = mBfBuildSystem.mProjectMap[project];
bool bfHadOutputChanges;
List<String> bfFileNames = scope List<String>();
bfSystem.Lock(0);
bfCompiler.GetOutputFileNames(bfProject, .None, out bfHadOutputChanges, bfFileNames);
bfSystem.Unlock();
defer ClearAndDeleteItems(bfFileNames);
if (bfHadOutputChanges)
project.mNeedsTargetRebuild = true;