mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 11:16:09 +02:00
IDE: project: if target file is set and apply conventions is off then always pas -o
git-svn-id: trunk@48128 -
This commit is contained in:
parent
a46cfc71b6
commit
a819e545f5
@ -3098,14 +3098,17 @@ begin
|
||||
if NewTargetDirectory <> '' then
|
||||
switches := switches + ' '+PrepareCmdLineOption('-FE' + NewTargetDirectory);
|
||||
NewTargetFileName := ExtractFileName(NewTargetFilename);
|
||||
if (NewTargetFilename<>'')
|
||||
and (NewTargetFilename<>ChangeFileExt(ExtractFileName(CurMainSrcFile),GetTargetFileExt))
|
||||
if (NewTargetFilename<>'') then
|
||||
begin
|
||||
if (not TargetFilenameApplyConventions)
|
||||
or (NewTargetFilename<>ChangeFileExt(ExtractFileName(CurMainSrcFile),GetTargetFileExt))
|
||||
then begin
|
||||
// custom target => pass -o
|
||||
switches := switches + ' '+PrepareCmdLineOption('-o' + NewTargetFileName);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
// append custom options as last, so they can override
|
||||
if not (ccloNoMacroParams in Flags) then
|
||||
|
Loading…
Reference in New Issue
Block a user