mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
build: Fix the rules for reconfiguring on git submodule changes
This commit is contained in:
parent
aa2fbbac0d
commit
143f87899b
@ -340,9 +340,7 @@ endif
|
||||
######################################################################
|
||||
|
||||
# This is a pretty expensive operation but I don't see any way to avoid it
|
||||
SUBMODULE_STATUS=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status)
|
||||
# Look through for submodules prefixed with '-' (need init), or '+' (need update)
|
||||
NEED_GIT_RECONFIG=$(shell echo "$(SUBMODULE_STATUS)" | grep -c '^\(+\|-\)')
|
||||
NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^\(+\|-\)')
|
||||
|
||||
ifeq ($(NEED_GIT_RECONFIG),0)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user