diff options
author | Jo Shields <jo.shields@xamarin.com> | 2015-11-20 14:04:10 +0300 |
---|---|---|
committer | Jo Shields <jo.shields@xamarin.com> | 2015-11-20 14:04:10 +0300 |
commit | d133efa6c5d1d965cab76d01943af965e5247307 (patch) | |
tree | d0b277e88f6a6eb8744f8482f705d1662ded23f7 /runtime | |
parent | e84f23e484643e31fd27100fbbc729c4c5a8ba05 (diff) |
Allow mono-wrapper executable to be overridden by environment
This makes it easier to force Cygwin-brokered test suite runs to use MSVC builds of Mono, i.e. by overriding MONO_EXECUTABLE to .../msvc/bin/Win32/mono-sgen.exe
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/mono-wrapper.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/mono-wrapper.in b/runtime/mono-wrapper.in index 0ec4811fb5d..7c2822f4b99 100644 --- a/runtime/mono-wrapper.in +++ b/runtime/mono-wrapper.in @@ -2,6 +2,7 @@ r='@mono_build_root@' MONO_CFG_DIR='@mono_cfg_dir@' PATH="$r/runtime/_tmpinst/bin:$PATH" +MONO_EXECUTABLE=${MONO_EXECUTABLE:-"$r/@mono_runtime@"} export MONO_CFG_DIR PATH if [ -n "@nacl_self_host@" ]; then case "$@" in @@ -12,4 +13,4 @@ if [ -n "@nacl_self_host@" ]; then */mcs.exe* | */gacutil.exe* | */mdoc.exe* ) exec /usr/local/bin/mono "$@";; esac fi -exec "$r/libtool" --mode=execute "$r/@mono_runtime@" --config "@mono_cfg_dir@/mono/config" "$@" +exec "$r/libtool" --mode=execute "${MONO_EXECUTABLE}" --config "@mono_cfg_dir@/mono/config" "$@" |