From 3eee30b23b4045684053daa8b99c1312cae27543 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 25 Apr 2019 16:47:01 -0400 Subject: [PATCH] [netcore] Avoid touching or using submodules in coreonly mode Commit migrated from https://github.com/mono/mono/commit/d44e45c32ec1315f5ab97b2e2ec5104ccad6e868 --- src/mono/Makefile.am | 8 +++++++- src/mono/configure.ac | 4 +++- src/mono/mono/Makefile.am | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/mono/Makefile.am b/src/mono/Makefile.am index 06dab03..0c69b39 100644 --- a/src/mono/Makefile.am +++ b/src/mono/Makefile.am @@ -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 diff --git a/src/mono/configure.ac b/src/mono/configure.ac index 15422a0..6c05201 100644 --- a/src/mono/configure.ac +++ b/src/mono/configure.ac @@ -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 diff --git a/src/mono/mono/Makefile.am b/src/mono/mono/Makefile.am index b21df74..de9d9ac 100644 --- a/src/mono/mono/Makefile.am +++ b/src/mono/mono/Makefile.am @@ -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 -- 2.7.4