From b80c5aa87ea666dc8c4e5317cef36193989d00a2 Mon Sep 17 00:00:00 2001 From: vincents Date: Tue, 30 Oct 2007 09:28:58 +0000 Subject: [PATCH] IDE: added more verbosity for adding directory to path on win32, don't check if cpp.exe is already on the path git-svn-id: trunk@12643 - --- ide/buildlazdialog.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ide/buildlazdialog.pas b/ide/buildlazdialog.pas index 9ba401612a..245a0001f9 100644 --- a/ide/buildlazdialog.pas +++ b/ide/buildlazdialog.pas @@ -351,10 +351,10 @@ var {$ENDIF} CodeToolBoss.GetFPCVersionForDirectory(EnvironmentOptions.LazarusDirectory, FPCVersion,FPCRelease,FPCPatch); - if (FPCVersion=2) and (FPCRelease=2) and (FPCPatch=0) - and (FindProgram('cpp.exe', '', false)='') then + if (FPCVersion=2) and (FPCRelease=2) and (FPCPatch=0) then Tool.EnvironmentOverrides.Values['PATH']:= ExtractFileDir(CompilerPath)+PathSep+GetProgramSearchPath(); + DebugLn(['AddCompilerDirToPath new path: ', Tool.EnvironmentOverrides.Values['PATH']]); end; {$ENDIF}