]> git.lizzy.rs Git - rust.git/blobdiff - mk/reconfig.mk
Auto merge of #28101 - ijks:24214-str-bytes, r=alexcrichton
[rust.git] / mk / reconfig.mk
index 1d800b54a1ff6699d3e535261960e5a00610f384..1a3a1774384d84d897675c9f67a4ee797b3927fa 100644 (file)
@@ -19,7 +19,7 @@ ifndef CFG_DISABLE_MANAGE_SUBMODULES
 # (nothing checked out at all).  `./configure --{llvm,jemalloc}-root`
 # will explicitly deinitialize the corresponding submodules, and we don't
 # want to force constant rebuilds in that case.
-NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^+')
+NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && $(CFG_GIT) submodule status | grep -c '^+')
 else
 NEED_GIT_RECONFIG=0
 endif
@@ -32,6 +32,12 @@ endif
 
 Makefile config.mk: config.stamp
 
+ifeq ($(SREL),)
+SREL_ROOT := ./
+else
+SREL_ROOT := $(SREL)
+endif
+
 config.stamp: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
        @$(call E, cfg: reconfiguring)
-       $(S)configure $(CFG_CONFIGURE_ARGS)
+       $(SREL_ROOT)configure $(CFG_CONFIGURE_ARGS)