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:
parent
d62a78fe74
commit
2c1d38d45f
3 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue