mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 04:39:34 +02:00
* removing of temporary directory with -s option
This commit is contained in:
parent
4da4e5b843
commit
766e24235c
@ -579,18 +579,29 @@ begin
|
|||||||
Replace(s,'$FILES',FixFileName(smartpath+current_module^.asmprefix^+'*'+target_info.objext));
|
Replace(s,'$FILES',FixFileName(smartpath+current_module^.asmprefix^+'*'+target_info.objext));
|
||||||
DoExec(arbin,s,false,true);
|
DoExec(arbin,s,false,true);
|
||||||
{ Clean up }
|
{ Clean up }
|
||||||
if not(cs_asm_leave in aktglobalswitches) and not(cs_link_extern in aktglobalswitches) then
|
if not(cs_asm_leave in aktglobalswitches) then
|
||||||
begin
|
if not(cs_link_extern in aktglobalswitches) then
|
||||||
if filescnt=0 then
|
begin
|
||||||
RemoveFile(current_module^.objfilename^)
|
if filescnt=0 then
|
||||||
else
|
RemoveFile(current_module^.objfilename^)
|
||||||
begin
|
else
|
||||||
for cnt:=1 to filescnt do
|
begin
|
||||||
if not RemoveFile(FixFileName(smartpath+current_module^.asmprefix^+tostr(cnt)+target_info.objext)) then
|
for cnt:=1 to filescnt do
|
||||||
RemoveFile(FixFileName(smartpath+current_module^.asmprefix^+'e'+tostr(cnt)+target_info.objext));
|
if not RemoveFile(FixFileName(smartpath+current_module^.asmprefix^+tostr(cnt)+target_info.objext)) then
|
||||||
RemoveDir(smartpath);
|
RemoveFile(FixFileName(smartpath+current_module^.asmprefix^+'e'+tostr(cnt)+target_info.objext));
|
||||||
end;
|
RemoveDir(smartpath);
|
||||||
end;
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
if filescnt=0 then
|
||||||
|
AsmRes.AddDeleteCommand(current_module^.objfilename^)
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
AsmRes.AddDeleteCommand(smartpath+current_module^.asmprefix^+'*'+target_info.objext);
|
||||||
|
AsmRes.Add('rmdir '+smartpath);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -609,7 +620,10 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.50 1999-04-25 14:31:48 daniel
|
Revision 1.51 1999-04-28 23:42:33 pierre
|
||||||
|
* removing of temporary directory with -s option
|
||||||
|
|
||||||
|
Revision 1.50 1999/04/25 14:31:48 daniel
|
||||||
* Bug fixed in linking: compiling files on another drive than the one you
|
* Bug fixed in linking: compiling files on another drive than the one you
|
||||||
currently use you is done correctly.
|
currently use you is done correctly.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user