From 478b3b42e2330969b6785da89a0b0fdf6a5bc2cf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Nov 2004 19:47:58 +0000 Subject: [PATCH] Make built bytecode libraries depend on gccas/gccld as appropriate. This should fix the stale runtime libraries problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18361 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 2a49a4623e6..9897fc87846 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -201,6 +201,9 @@ endif ifndef TBLGEN TBLGEN := $(LLVMToolDir)/tblgen$(EXEEXT) endif +ifndef GCCAS +GCCAS := $(LLVMToolDir)/gccas$(EXEEXT) +endif ifndef GCCLD GCCLD := $(LLVMToolDir)/gccld$(EXEEXT) endif @@ -520,7 +523,7 @@ endif all-local:: $(LibName.BC) -$(LibName.BC): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir +$(LibName.BC): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir $(GCCLD) $(Echo) Linking $(BuildMode) Bytecode Library $(notdir $@) $(Verb) $(BCLinkLib) -o $@ $(ObjectsBC) @@ -782,13 +785,13 @@ endif #--------------------------------------------------------- # Create .bc files in the ObjDir directory from .cpp and .c files... #--------------------------------------------------------- -$(ObjDir)/%.bc: %.cpp $(ObjDir)/.dir +$(ObjDir)/%.bc: %.cpp $(ObjDir)/.dir $(GCCAS) $(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)" $(Verb) if $(BCCompile.CXX) -MD -MT $@ -MP -MF "$(ObjDir)/$*.BCCXXd" $< -o $@ ; \ then $(MV) -f "$(ObjDir)/$*.BCCXXd" "$(ObjDir)/$*.d"; \ else $(RM) -f "$(ObjDir)/$*.BCCXXd"; exit 1; fi -$(ObjDir)/%.bc: %.c $(ObjDir)/.dir +$(ObjDir)/%.bc: %.c $(ObjDir)/.dir $(GCCAS) $(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)" $(Verb) if $(BCCompile.C) -MD -MT $@ -MP -MF "$(ObjDir)/$*.BCCd" $< -o $@ ; \ then $(MV) -f "$(ObjDir)/$*.BCCd" "$(ObjDir)/$*.d"; \ @@ -818,11 +821,11 @@ $(ObjDir)/%.o: %.c $(ObjDir)/.dir $(Compile.C) $< -o $@ endif -$(ObjDir)/%.bc: %.cpp $(ObjDir)/.dir +$(ObjDir)/%.bc: %.cpp $(ObjDir)/.dir $(GCCAS) $(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)" $(BCCompile.CXX) $< -o $@ -$(ObjDir)/%.bc: %.c $(ObjDir)/.dir +$(ObjDir)/%.bc: %.c $(ObjDir)/.dir $(GCCAS) $(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)" $(BCCompile.C) $< -o $@