mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 12:18:11 +00:00
scripts/memory.sh only work on Linux
This commit is contained in:
parent
28122e4329
commit
4a7ed714bf
1 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,11 @@ if grep -i cmake Makefile >/dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $( uname ) != Linux ]; then
|
||||||
|
echo "Only work on Linux" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if git status | grep -F $CONFIG_H >/dev/null 2>&1; then
|
if git status | grep -F $CONFIG_H >/dev/null 2>&1; then
|
||||||
echo "config.h not clean" >&2
|
echo "config.h not clean" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -54,7 +59,7 @@ do_config()
|
||||||
cd programs
|
cd programs
|
||||||
CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os ssl/$CLIENT >/dev/null
|
CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os ssl/$CLIENT >/dev/null
|
||||||
strip ssl/$CLIENT
|
strip ssl/$CLIENT
|
||||||
stat -f '%z' ssl/$CLIENT
|
stat -c '%s' ssl/$CLIENT
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
printf " Peak ram usage... "
|
printf " Peak ram usage... "
|
||||||
|
|
Loading…
Reference in a new issue