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 -
This commit is contained in:
vincents 2007-10-30 09:28:58 +00:00
parent 43cd1b77bd
commit b80c5aa87e

View File

@ -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}