IDE: compile package: quote src if needed

git-svn-id: trunk@60539 -
This commit is contained in:
mattias 2019-02-28 18:23:22 +00:00
parent acedbb1bcd
commit 74f40164bd

View File

@ -53,7 +53,7 @@ uses
Laz2_XMLCfg, laz2_XMLRead, LazStringUtils, AvgLvlTree, Laz2_XMLCfg, laz2_XMLRead, LazStringUtils, AvgLvlTree,
// codetools // codetools
FileProcs, DefineTemplates, CodeToolManager, CodeCache, DirectoryCacher, FileProcs, DefineTemplates, CodeToolManager, CodeCache, DirectoryCacher,
BasicCodeTools, NonPascalCodeTools, SourceChanger, PascalReaderTool, BasicCodeTools, NonPascalCodeTools, SourceChanger,
// IDEIntf, // IDEIntf,
IDEExternToolIntf, IDEDialogs, IDEMsgIntf, CompOptsIntf, LazIDEIntf, IDEExternToolIntf, IDEDialogs, IDEMsgIntf, CompOptsIntf, LazIDEIntf,
MacroDefIntf, ProjectIntf, FppkgIntf, MacroDefIntf, ProjectIntf, FppkgIntf,
@ -1054,7 +1054,7 @@ function TLazPackageGraph.GetPackageCompilerParams(APackage: TLazPackage
begin begin
Result:=APackage.CompilerOptions.MakeOptionsString( Result:=APackage.CompilerOptions.MakeOptionsString(
APackage.CompilerOptions.DefaultMakeOptionsFlags+[ccloAbsolutePaths]) APackage.CompilerOptions.DefaultMakeOptionsFlags+[ccloAbsolutePaths])
+' '+CreateRelativePath(APackage.GetSrcFilename,APackage.Directory); +' '+PrepareCmdLineOption(CreateRelativePath(APackage.GetSrcFilename,APackage.Directory));
end; end;
constructor TLazPackageGraph.Create; constructor TLazPackageGraph.Create;