IDE: fixed build lazarus using default make

git-svn-id: trunk@21430 -
This commit is contained in:
mattias 2009-08-24 07:43:48 +00:00
parent 4477513d4d
commit ad89cdf5d0

View File

@ -347,11 +347,11 @@ begin
Tool.EnvironmentOverrides.Values['LANG']:= 'en_US';
if CompilerPath<>'' then
Tool.EnvironmentOverrides.Values['PP']:=CompilerPath;
if not FileExistsUTF8(Tool.Filename) then
if (Tool.Filename<>'') and (not FileExistsUTF8(Tool.Filename)) then
Tool.Filename:=FindDefaultExecutablePath(Tool.Filename);
if not FileExistsUTF8(Tool.Filename) then begin
if (Tool.Filename='') or (not FileExistsUTF8(Tool.Filename)) then begin
Tool.Filename:=FindDefaultMakePath;
if not FileExistsUTF8(MakePath) then begin
if (Tool.Filename='') or (not FileExistsUTF8(Tool.Filename)) then begin
MessageDlg(lisMakeNotFound,
Format(lisTheProgramMakeWasNotFoundThisToolIsNeededToBuildLa, ['"',
'"', #13, #13])