Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-11

fpmkunit patch

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszijk

Here's a patch for fpmkunit.

- implements Defaults.NoFPCCfg in TBuildEngine.GetCompilerCommand
- added ttCleanOnlyUnit in TTarget.GetCleanFiles
- fixes a dirty little bug in TBuildEngine.GetCompilerCommand (compile filename)

To come back to the last item;

When fpmake is called from a deeper directory normally Installer.Directory is set. This directory in turn is appended to Target.FullSourceFileName. When you also set TTarget.Directory it can result in a pathfilename like: mydir\..\src\lib.pas. This at least is invalid on windows. By expanding the filename and then making it relative again against the package directory it's solved.

Oh yes, in relation to fpmake I seem to have discovered a bug in ExtractRelativepath as well
(http://www.freepascal.org/mantis/view.php?id=10224).

Darius

Reply by email

Peter Vreman
to Darius Blaszijk
you wrote 15 lines
Here's a patch for fpmkunit. - implements Defaults.NoFPCCfg in TBuildEngine.GetCompilerCommand - added ttCleanOnlyUnit in TTarget.GetCleanFiles - fixes a dirty little bug in TBuildEngine.GetCompilerCommand (compile filename) To come back to the last item; When fpmake is called from a deeper directory normally Installer.Directory is set. This directory in turn is appended to Target.FullSourceFileName. When you also set TTarget.Directory it can result in a pathfilename like: mydir\..\src\lib.pas. This at least is invalid on windows. By expanding the filename and then making it relative again against the package directory it's solved.

Thanks. Patch Applied.

Peter

Reply by email