lazbuild: fixed create Makefile.compiled

git-svn-id: trunk@40697 -
This commit is contained in:
mattias 2013-04-02 10:37:12 +00:00
parent ca72db350a
commit ba3392e716

View File

@ -3561,7 +3561,7 @@ begin
XMLConfig:=TXMLConfig.Create(TargetCompiledFile); XMLConfig:=TXMLConfig.Create(TargetCompiledFile);
try try
XMLConfig.SetValue('Makefile/Value',True); XMLConfig.SetValue('Makefile/Value',True);
s:=OtherOptions; s:='';
if UnitPath<>'' then if UnitPath<>'' then
s:=s+' -Fu'+SwitchPathDelims(UnitPath,pdsUnix); s:=s+' -Fu'+SwitchPathDelims(UnitPath,pdsUnix);
if IncPath<>'' then if IncPath<>'' then
@ -3571,8 +3571,7 @@ begin
// do no write the unit output directory // do no write the unit output directory
// it is not needed because it is the location of the Makefile.compiled // it is not needed because it is the location of the Makefile.compiled
s:=s+' '+SwitchPathDelims(CreateRelativePath(APackage.GetSrcFilename,APackage.Directory),pdsUnix); s:=s+' '+SwitchPathDelims(CreateRelativePath(APackage.GetSrcFilename,APackage.Directory),pdsUnix);
//debugln(['TLazPackageGraph.WriteMakefileCompiled IncPath="',IncPath,'" UnitPath="',UnitPath,'" Custom="',OtherOptions,'"']);
//debugln(['TLazPackageGraph.WriteMakefileCompiled IncPath="',IncPath,'" UnitPath="',UnitPath,'" Custom="',CustomOptions,'" Out="',UnitOutputPath,'"']);
XMLConfig.SetValue('Params/Value',s); XMLConfig.SetValue('Params/Value',s);
if XMLConfig.Modified then begin if XMLConfig.Modified then begin
InvalidateFileStateCache; InvalidateFileStateCache;