Skip to content

Commit 7f03fa1

Browse files
committed
---
yaml --- r: 6482 b: refs/heads/master c: 8d7863f h: refs/heads/master v: v3
1 parent eed9f39 commit 7f03fa1

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: cd91c6d065bf4b0688a588cb7ed19ad90aa53b94
2+
refs/heads/master: 8d7863fad045edff9d9c825b48e72dd022c6fad5

trunk/Makefile.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,12 @@ endif
340340
# Re-configuration
341341
######################################################################
342342

343+
ifndef CFG_DISABLE_MANAGE_SUBMODULES
343344
# This is a pretty expensive operation but I don't see any way to avoid it
344345
NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^\(+\|-\)')
346+
else
347+
NEED_GIT_RECONFIG=0
348+
endif
345349

346350
ifeq ($(NEED_GIT_RECONFIG),0)
347351
else

trunk/configure

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ opt docs 1 "build documentation"
253253
opt optimize 1 "build optimized rust code"
254254
opt optimize-cxx 1 "build optimized C++ code"
255255
opt optimize-llvm 1 "build optimized LLVM"
256+
opt manage-submodules 1 "let the build manage the git submodules"
256257
opt mingw-cross 0 "cross-compile for win32 using mingw"
257258
opt clang 0 "prefer gcc to clang for building the runtime"
258259
valopt prefix "/usr/local" "set installation prefix"
@@ -404,11 +405,17 @@ step_msg "configuring submodules"
404405
# Have to be in the top of src directory for this
405406
cd ${CFG_SRC_DIR}
406407

408+
if [ -z $CFG_DISABLE_MANAGE_SUBMODULES ]
409+
then
407410
SUBMODULE_STATUS=$("${CFG_GIT}" submodule status)
408411
NEED_INIT_COUNT=$(echo "$SUBMODULE_STATUS" | grep -c "^-")
409412
NEED_UPDATE_COUNT=$(echo "$SUBMODULE_STATUS" | grep -c "^+")
410413
NEED_INIT=$(test $NEED_INIT_COUNT -gt 0)$?
411414
NEED_UPDATE=$(test "($NEED_INIT)" -o "$NEED_UPDATE_COUNT" -gt 0)$?
415+
else
416+
NEED_INIT=
417+
NEED_UPDATE=
418+
fi
412419

413420
if [ $NEED_INIT ]
414421
then

0 commit comments

Comments
 (0)