From ea823e883b1ceb8d294e1059ac5228f128d98a8b Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 1 Dec 2014 06:13:38 +0100 Subject: [PATCH] fix, doesnt call dmd if no source --- src/ce_project.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ce_project.pas b/src/ce_project.pas index 804377c4..590a1bdf 100644 --- a/src/ce_project.pas +++ b/src/ce_project.pas @@ -506,6 +506,8 @@ begin subjLmFromString(TCELogMessageSubject(fLogMessager), 'project warning: the pre-compilation process has not been properly executed', Self, amcProj, amkWarn); // + if Sources.Count = 0 then exit; + // prjname := shortenPath(filename, 25); compilproc := TProcess.Create(nil); olddir := ''; @@ -523,7 +525,7 @@ begin compilproc.Options := compilproc.Options + [poStderrToOutPut, poUsePipes]; compilproc.ShowWindow := swoHIDE; getOpts(compilproc.Parameters); - compilproc.Execute; + compilproc.Execute; while compilProc.Running do compProcOutput(compilproc); if compilproc.ExitStatus = 0 then begin