MG: compiler out file only if different

git-svn-id: trunk@427 -
This commit is contained in:
lazarus 2001-11-16 12:55:36 +00:00
parent fba4f31c5a
commit c0580a1c76

View File

@ -882,8 +882,11 @@ begin
-Xc = Link with C library (LINUX only)
}
if (TargetFilename <> '') or (MainSourceFilename<>'') then
switches := switches + ' -o' + CreateTargetFilename(MainSourceFilename);
if (TargetFilename <> '') or (MainSourceFilename<>'') then begin
tempsw:=CreateTargetFilename(MainSourceFilename);
if tempsw <> ChangeFileExt(MainSourceFilename,'') then
switches := switches + ' -o' + tempsw;
end;
{ Setting this to a default for now to allow the compiler to compile, until I get
the above completed. }