forked from OSchip/llvm-project
Fix rare failure of .ver-svn creation, it has a dependency that the output
directory exist. llvm-svn: 72704
This commit is contained in:
parent
c6d9800564
commit
3acbe4ab58
|
@ -20,7 +20,7 @@ SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
|
|||
CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
|
||||
-DSVN_REVISION='"$(SVN_REVISION)"'
|
||||
|
||||
$(ObjDir)/.ver-svn .ver:
|
||||
$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir
|
||||
@if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
|
||||
echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue