diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-12-19 08:21:19 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-12-19 08:21:19 +0100 |
commit | 712e445efe3b69c2fdecec4dd472390d251541ad (patch) | |
tree | c80aa7e1a417ef09634b190fce3cc65dd0e5b540 /src/ghdldrv | |
parent | b82151d36e4e8c8a3784e515fb8a3b80a69e1049 (diff) | |
download | ghdl-712e445efe3b69c2fdecec4dd472390d251541ad.tar.gz ghdl-712e445efe3b69c2fdecec4dd472390d251541ad.tar.bz2 ghdl-712e445efe3b69c2fdecec4dd472390d251541ad.zip |
ghdl --clean: consider executable suffix (for windows).
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdllocal.adb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ghdldrv/ghdllocal.adb b/src/ghdldrv/ghdllocal.adb index 411965374..3a6910317 100644 --- a/src/ghdldrv/ghdllocal.adb +++ b/src/ghdldrv/ghdllocal.adb @@ -852,9 +852,12 @@ package body Ghdllocal is pragma Unreferenced (Cmd); use Name_Table; + Obj_Suffix : constant String_Access := Get_Object_Suffix; + Exec_Suffix : constant String_Access := Get_Executable_Suffix; + procedure Delete_Asm_Obj (Str : String) is begin - Delete (Str & Get_Object_Suffix.all & Nul); + Delete (Str & Obj_Suffix.all & Nul); Delete (Str & Asm_Suffix & Nul); end Delete_Asm_Obj; @@ -867,7 +870,7 @@ package body Ghdllocal is Delete (Str & List_Suffix & Nul); -- Delete executable. - Delete (Str & Nul); + Delete (Str & Exec_Suffix.all & Nul); end Delete_Top_Unit; File : Iir_Design_File; |