From c4abd3d658aee2ca84892e3c1b9792c05f2b9986 Mon Sep 17 00:00:00 2001 From: mattias Date: Wed, 16 Mar 2011 13:36:31 +0000 Subject: [PATCH] IDE: do not scan compiler if no compiler is set git-svn-id: trunk@29870 - --- ide/buildmanager.pas | 5 +++++ 1 file changed, 5 insertions(+) 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);