mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Fix PR1040:
Don't rebuild llvm-config if none of the library dependencies changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
450856d01b
commit
4fbcdf61e8
@ -29,11 +29,16 @@ SUB_LDFLAGS =
|
|||||||
|
|
||||||
FinalLibDeps = $(PROJ_OBJ_DIR)/FinalLibDeps.txt
|
FinalLibDeps = $(PROJ_OBJ_DIR)/FinalLibDeps.txt
|
||||||
LibDeps = $(PROJ_OBJ_DIR)/LibDeps.txt
|
LibDeps = $(PROJ_OBJ_DIR)/LibDeps.txt
|
||||||
|
LibDepsTemp = $(PROJ_OBJ_DIR)/LibDeps.txt.tmp
|
||||||
GenLibDeps = $(PROJ_SRC_ROOT)/utils/GenLibDeps.pl
|
GenLibDeps = $(PROJ_SRC_ROOT)/utils/GenLibDeps.pl
|
||||||
|
|
||||||
$(LibDeps): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o)
|
$(LibDepsTemp): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o)
|
||||||
$(Echo) "Regenerating LibDeps.txt"
|
$(Echo) "Regenerating LibDeps.txt.tmp"
|
||||||
$(Verb) $(GenLibDeps) -flat $(LibDir) $(NM_PATH) > $(LibDeps)
|
$(Verb) $(GenLibDeps) -flat $(LibDir) $(NM_PATH) > $(LibDepsTemp)
|
||||||
|
|
||||||
|
$(LibDeps): $(LibDepsTemp)
|
||||||
|
$(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \
|
||||||
|
$(EchoCmd) Updated LibDeps.txt because dependencies changes )
|
||||||
|
|
||||||
# Find all the cyclic dependencies between various LLVM libraries, so we
|
# Find all the cyclic dependencies between various LLVM libraries, so we
|
||||||
# don't have to process them at runtime.
|
# don't have to process them at runtime.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user