diff --git a/v1/borland-tools.jam b/v1/borland-tools.jam index 696e6b6db..a58739002 100644 --- a/v1/borland-tools.jam +++ b/v1/borland-tools.jam @@ -179,7 +179,8 @@ rule Archive-action actions updated together piecemeal borland-Archive-action { - "$(BCC_TOOL_PATH)tlib" /P64 /u /a /C /$(ARFLAGS) "$(<)" +-"$(>)" + IF EXIST "$(<)" DEL "$(<)" + "$(BCC_TOOL_PATH)tlib" /P64 /u /a /C /$(ARFLAGS) "$(<)" +"$(>)" } diff --git a/v1/msvc-tools.jam b/v1/msvc-tools.jam index fbf7107e1..8dd3394db 100644 --- a/v1/msvc-tools.jam +++ b/v1/msvc-tools.jam @@ -188,7 +188,7 @@ rule Archive-action actions updated together piecemeal vc-Archive { $(VC_SETUP) - if exist "$(<)" set _$(<:B)_="$(<)" + if exist "$(<)" DEL "$(<)" "$(VC_TOOL_PATH)$(VC_LINKER)" /lib $(ARFLAGS) $(PDB_LINKFLAG)"$(VC_PDB_FILE)" /out:"$(<)" %_$(<:B)_% @"$(>)" }