64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
18 lines
436 B
Bash
18 lines
436 B
Bash
#! /bin/sh
|
|
r='@mono_build_root@'
|
|
aotpattern="--aot="
|
|
|
|
# if this is an aot invoke
|
|
if [[ $@ =~ $aotpattern ]];
|
|
then
|
|
# just aot the code
|
|
echo "$r/runtime/mono-wrapper $@"
|
|
exec $r/runtime/mono-wrapper $@
|
|
else
|
|
# else run it under perf
|
|
echo "$MONO_PERF_BINARY record -o $r/acceptance-tests/perf.data -v -s -g -- $r/mono/mini/mono-sgen $@"
|
|
exec $MONO_PERF_BINARY record -o $r/acceptance-tests/perf.data -v -s -g $r/mono/mini/mono-sgen $@
|
|
fi
|
|
|
|
|