mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
configure: Don't sync unused submodules
If the compiler is built with --{llvm,jemalloc,libuv}-root, then the configure script can skip updating these submodules. Closes #14822
This commit is contained in:
parent
9b9ef44233
commit
49fe690477
21
configure
vendored
21
configure
vendored
@ -942,8 +942,25 @@ then
|
|||||||
msg "git: submodule sync"
|
msg "git: submodule sync"
|
||||||
"${CFG_GIT}" submodule sync
|
"${CFG_GIT}" submodule sync
|
||||||
|
|
||||||
|
msg "git: submodule init"
|
||||||
|
"${CFG_GIT}" submodule init
|
||||||
|
|
||||||
|
# Disable submodules that we're not using
|
||||||
|
if [ ! -z "${CFG_LLVM_ROOT}" ]; then
|
||||||
|
msg "git: submodule deinit src/llvm"
|
||||||
|
"${CFG_GIT}" submodule deinit src/llvm
|
||||||
|
fi
|
||||||
|
if [ ! -z "${CFG_JEMALLOC_ROOT}" ]; then
|
||||||
|
msg "git: submodule deinit src/jemalloc"
|
||||||
|
"${CFG_GIT}" submodule deinit src/jemalloc
|
||||||
|
fi
|
||||||
|
if [ ! -z "${CFG_LIBUV_ROOT}" ]; then
|
||||||
|
msg "git: submodule deinit src/libuv"
|
||||||
|
"${CFG_GIT}" submodule deinit src/libuv
|
||||||
|
fi
|
||||||
|
|
||||||
msg "git: submodule update"
|
msg "git: submodule update"
|
||||||
"${CFG_GIT}" submodule update --init
|
"${CFG_GIT}" submodule update
|
||||||
need_ok "git failed"
|
need_ok "git failed"
|
||||||
|
|
||||||
msg "git: submodule foreach sync"
|
msg "git: submodule foreach sync"
|
||||||
@ -951,7 +968,7 @@ then
|
|||||||
need_ok "git failed"
|
need_ok "git failed"
|
||||||
|
|
||||||
msg "git: submodule foreach update"
|
msg "git: submodule foreach update"
|
||||||
"${CFG_GIT}" submodule update --init --recursive
|
"${CFG_GIT}" submodule update --recursive
|
||||||
need_ok "git failed"
|
need_ok "git failed"
|
||||||
|
|
||||||
# NB: this is just for the sake of getting the submodule SHA1 values
|
# NB: this is just for the sake of getting the submodule SHA1 values
|
||||||
|
Loading…
Reference in New Issue
Block a user