From 1586896f99aefeadf1229a33c01784ea8fd5fbc6 Mon Sep 17 00:00:00 2001 From: Alexander Kyte Date: Tue, 14 Jun 2016 19:00:14 -0400 Subject: [PATCH] [runtime] Make the default preset only build net_4_x --- configure.ac | 12 +++++++++++- scripts/ci/run-jenkins.sh | 14 ++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 14fc03aeef5..d9fb19eaba0 100644 --- a/configure.ac +++ b/configure.ac @@ -740,7 +740,7 @@ AC_ARG_WITH(bitcode, [ --with-bitcode=yes,no If bitcode is en AC_ARG_WITH(xammac, [ --with-xammac=yes,no If you want to build the Xamarin.Mac assemblies (defaults to no)], [], [with_xammac=default]) AC_ARG_WITH(mobile_static, [ --with-mobile_static=yes,no If you want to build the mobile_static assemblies (defaults to no)], [], [with_mobile_static=default]) -AC_ARG_WITH(runtime_preset, [ --with-runtime_preset=all,mobile_static,bitcode_mobile_static Which default profile to build (defaults to all)], [], [with_runtime_preset=all]) +AC_ARG_WITH(runtime_preset, [ --with-runtime_preset=net_4_x,all,mobile_static,bitcode_mobile_static Which default profile to build (defaults to net_4_x)], [], [with_runtime_preset=net_4_x]) dnl dnl Profile defaults @@ -759,6 +759,16 @@ if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then with_mobile_static_default=no with_bitcode_default=no with_cooperative_gc_default=no +elif test x$with_runtime_preset = xnet_4_x; then + with_cooperative_gc_default=no + with_profile4_x_default=yes + with_monodroid_default=no + with_monotouch_default=no + with_monotouch_watch_default=no + with_monotouch_tv_default=no + with_xammac_default=no + with_mobile_static_default=no + with_bitcode_default=no elif test x$with_runtime_preset = xall; then with_cooperative_gc_default=no with_profile4_x_default=yes diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh index a2fbdf776ce..590dad3bb92 100755 --- a/scripts/ci/run-jenkins.sh +++ b/scripts/ci/run-jenkins.sh @@ -12,17 +12,15 @@ if [[ ${label} == 'osx-amd64' ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --w if [[ ${label} == 'w32' ]]; then PLATFORM=Win32; EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --host=i686-w64-mingw32"; export MONO_EXECUTABLE="`cygpath -u ${WORKSPACE}\\\msvc\\\Win32\\\bin\\\Release_SGen\\\mono-sgen.exe`";fi if [[ ${label} == 'w64' ]]; then PLATFORM=x64; EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --host=x86_64-w64-mingw32 --disable-boehm"; export MONO_EXECUTABLE="`cygpath -u ${WORKSPACE}\\\msvc\\\x64\\\bin\\\Release_SGen\\\mono-sgen.exe`"; fi -if [[ ${label} == w* ]] || [[ ${label} == 'debian-ppc64el' ]] || [[ ${label} == 'centos-s390x' ]]; +if [[ ${CI_TAGS} == 'mobile_static' ]]; + then + EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=mobile_static"; +elif [[ ${label} != w* ]] && [[ ${label} != 'debian-ppc64el' ]] && [[ ${label} != 'centos-s390x' ]]; then # Override the defaults to skip profiles # only enable the mobile profiles and mobile_static on the main architectures - # only enable the concurrent collector by default on main unix archs - EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-monodroid=no --with-monotouch=no --with-monotouch_watch=no --with-monotouch_tv=no --with-xammac=no" -elif [[ ${CI_TAGS} == 'mobile_static' ]]; - then - EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=mobile_static"; -else - EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-sgen-default-concurrent=yes" + # only enable the concurrent collector by default on main unix archs + EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=all --with-sgen-default-concurrent=yes" fi if [ -x "/usr/bin/dpkg-architecture" ]; -- 2.25.1