Always remove bytecode archives so that path mismatches don't cause the
authorReid Spencer <rspencer@reidspencer.com>
Mon, 13 Dec 2004 03:56:42 +0000 (03:56 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 13 Dec 2004 03:56:42 +0000 (03:56 +0000)
contents to not be updated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18872 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 75e1cde27540a9b7365bd4ff10ef597488926764..803d34c3ae7d4c32248e15c6ca2b436c3d767b40 100644 (file)
@@ -579,10 +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) $(LArchive) $@ $(ObjDir)/$(LIBRARYNAME).o
 else
 $(LibName.BCA): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir
        $(Echo) Building $(BuildMode) Bytecode Archive $(notdir $@)
+       $(Verb) $(RM) $@
        $(Verb) $(LArchive) $@ $(ObjectsBC)
 
 endif