diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-12 00:43:38 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-12 00:43:38 +0000 |
| commit | b7e5180d3cfc158ed78c8bae38839851436e1da7 (patch) | |
| tree | 68e11dc3935514138385db47afc8e4811b1cddcc /llvm | |
| parent | 1bbe581d0f796778b4a9420b33cde76583d350c6 (diff) | |
| download | bcm5719-llvm-b7e5180d3cfc158ed78c8bae38839851436e1da7.tar.gz bcm5719-llvm-b7e5180d3cfc158ed78c8bae38839851436e1da7.zip | |
Fix PR1040:
Don't rebuild llvm-config if none of the library dependencies changed.
llvm-svn: 32455
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/llvm-config/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/tools/llvm-config/Makefile b/llvm/tools/llvm-config/Makefile index 354723ab2bb..410808b1f26 100644 --- a/llvm/tools/llvm-config/Makefile +++ b/llvm/tools/llvm-config/Makefile @@ -29,11 +29,16 @@ SUB_LDFLAGS = FinalLibDeps = $(PROJ_OBJ_DIR)/FinalLibDeps.txt LibDeps = $(PROJ_OBJ_DIR)/LibDeps.txt +LibDepsTemp = $(PROJ_OBJ_DIR)/LibDeps.txt.tmp GenLibDeps = $(PROJ_SRC_ROOT)/utils/GenLibDeps.pl -$(LibDeps): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o) - $(Echo) "Regenerating LibDeps.txt" - $(Verb) $(GenLibDeps) -flat $(LibDir) $(NM_PATH) > $(LibDeps) +$(LibDepsTemp): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o) + $(Echo) "Regenerating LibDeps.txt.tmp" + $(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 # don't have to process them at runtime. |

