[fpc-pascal] FPC run (run program after compile)

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon Jan 16 14:59:02 CET 2017


On 16/01/17 13:30, Mattias Gaertner wrote:
> On Mon, 16 Jan 2017 05:22:14 -0700
> "Lars" <noreply at z505.com> wrote:
>
>> [...]
>> That instantfpc has catch22 like you cant compule multiple projects with
>> the same name, i.e. it caches file name only (caveat) whereas fpcrun would
>> compile it in current directory, as normal, no special cache dir needed
>
> Feel free to add an option like "--inplace" and send the patch.

This works

#!/usr/local/bin/fpc.d/3.0.0/instantfpc --set-cache=./

program Test;
..

except that the original file's getting modified to put // in front of 
the shebang which means that a second instantfpc run fails.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list