diff --git a/ide/buildmanager.pas b/ide/buildmanager.pas index ba789119df..87a3571a1b 100644 --- a/ide/buildmanager.pas +++ b/ide/buildmanager.pas @@ -646,6 +646,11 @@ begin '']); {$ENDIF} + if CompilerFilename='' then begin + UnitSetCache:=nil; + exit; + end; + UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet( CompilerFilename,TargetOS,TargetCPU,'',FPCSrcDir,true);