From efd6bb37a36c6f6d1581e9d28923c09f30cd186d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 13 Dec 2004 03:59:35 +0000 Subject: [PATCH] Make sure the archive doesn't have to exist before we remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18873 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 803d34c3ae7..e2f5794db38 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -579,12 +579,12 @@ $(LibName.BCA): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir $(GCCLD) $(Echo) Building $(BuildMode) Bytecode Archive $(notdir $@) \ "(internalize)" $(Verb) $(BCLinkLib) -o $(ObjDir)/$(LIBRARYNAME).o $(ObjectsBC) - $(Verb) $(RM) $@ + $(Verb) $(RM) -f $@ $(Verb) $(LArchive) $@ $(ObjDir)/$(LIBRARYNAME).o else $(LibName.BCA): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir $(Echo) Building $(BuildMode) Bytecode Archive $(notdir $@) - $(Verb) $(RM) $@ + $(Verb) $(RM) -f $@ $(Verb) $(LArchive) $@ $(ObjectsBC) endif