[netcore] Avoid touching or using submodules in coreonly mode
authorJo Shields <joshield@microsoft.com>
Thu, 25 Apr 2019 20:47:01 +0000 (16:47 -0400)
committerMarek Safar <marek.safar@gmail.com>
Fri, 26 Apr 2019 06:53:25 +0000 (08:53 +0200)
Commit migrated from https://github.com/mono/mono/commit/d44e45c32ec1315f5ab97b2e2ec5104ccad6e868

src/mono/Makefile.am
src/mono/configure.ac
src/mono/mono/Makefile.am

index 06dab03..0c69b39 100644 (file)
@@ -19,11 +19,17 @@ build_with_msvc =
 build_without_msvc = msvc
 endif
 
+if ENABLE_NETCORE
+update_submodules = 
+else
+update_submodules = update_submodules
+endif
+
 SUBDIRS = $(build_with_msvc) mk po $(libgc_dir) llvm mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) $(build_without_msvc) $(docs_dir) acceptance-tests
 # Keep in sync with SUBDIRS
 DIST_SUBDIRS = $(build_with_msvc) m4 mk po $(libgc_dir) llvm mono ikvm-native support data runtime scripts man samples tools $(build_without_msvc) docs acceptance-tests netcore
 
-all: update_submodules
+all: $(update_submodules)
 
 update_submodules:
        @cd $(srcdir) && scripts/update_submodules.sh
index 15422a0..6c05201 100644 (file)
@@ -6410,7 +6410,9 @@ AC_SUBST(CPPFLAGS)
 AC_SUBST(LDFLAGS)
 
 # Update all submodules recursively to ensure everything is checked out
-(cd $srcdir && scripts/update_submodules.sh)
+if test "x$with_core" != "xonly"; then
+       (cd $srcdir && scripts/update_submodules.sh)
+fi
 
 AC_OUTPUT([
 Makefile
index b21df74..de9d9ac 100644 (file)
@@ -12,6 +12,10 @@ if MONO_NATIVE
 native_dirs = native
 endif
 
+if ENABLE_NETCORE
+btls_dirs = 
+endif
+
 if CROSS_COMPILING
 SUBDIRS = $(btls_dirs) eglib arch utils cil $(sgen_dirs) metadata mini dis profiler $(native_dirs)
 else