[Lazarus] Leftover ppas.sh file

Graeme Geldenhuys graemeg at opensoft.homeip.net
Tue Jul 14 10:57:09 CEST 2009


Thanks for the quick reply Henry.


Henry Vermaak wrote:
> 
> This file is created by fpc if you call it with -sh.  Assembler and
> linker isn't called, so presumably that's where the quick compile
> comes from.

That's correct - or at least that is how I understood it as well. But I 
did not know fpc creates that file.


> Perhaps fpc needs to accept an argument to -sh that specifies the
> script file it needs to create, then lazarus can specify it and delete
> it afterwards.

So is this not maybe an FPC issue then? Why doesn't FPC clean-up after 
itself, or ask the OS for the temp dir location and use that instead?

Alternatively (but I don't think this is the right way to go), Lazarus 
could detect the Quick Compile command and delete the ppas.sh file 
afterwards. The file always seems to be created in the default output 
directory of the binary file.

But as I mentioned, if FPC is the one creating the file, surely it 
should be responsible for clean up afterwards.


Regards,
   - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list