[threads] Export mono_thread_info_detach () for use in the profiler.
[mono-project.git] / runtime / mono-wrapper.in
blob7c2822f4b996ef75426ccfdb805e0f56e6a5b8d7
1 #! /bin/sh
2 r='@mono_build_root@'
3 MONO_CFG_DIR='@mono_cfg_dir@'
4 PATH="$r/runtime/_tmpinst/bin:$PATH"
5 MONO_EXECUTABLE=${MONO_EXECUTABLE:-"$r/@mono_runtime@"}
6 export MONO_CFG_DIR PATH
7 if [ -n "@nacl_self_host@" ]; then
8 case "$@" in
9 # gacutil.exe and mdoc.exe require filesystem functionality not
10 # exposed in NaCl.
11 # mcs.exe was added to the list recently because mcs under NaCl
12 # no longer produces equivalent output. TODO: investigate
13 */mcs.exe* | */gacutil.exe* | */mdoc.exe* ) exec /usr/local/bin/mono "$@";;
14 esac
16 exec "$r/libtool" --mode=execute "${MONO_EXECUTABLE}" --config "@mono_cfg_dir@/mono/config" "$@"