mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 13:28:16 +00:00
list-symbols.sh: if the build fails, print the build transcript
If "make clean lib" fails in list-symbols.sh, print the transcript from running make.
This commit is contained in:
parent
902a1f3f7f
commit
39d7c58db5
1 changed files with 13 additions and 1 deletions
|
@ -14,8 +14,20 @@ fi
|
||||||
|
|
||||||
cp include/mbedtls/config.h include/mbedtls/config.h.bak
|
cp include/mbedtls/config.h include/mbedtls/config.h.bak
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
CFLAGS=-fno-asynchronous-unwind-tables make clean lib >/dev/null 2>&1
|
make_ret=
|
||||||
|
CFLAGS=-fno-asynchronous-unwind-tables make clean lib \
|
||||||
|
>list-symbols.make.log 2>&1 ||
|
||||||
|
{
|
||||||
|
make_ret=$?
|
||||||
|
echo "Build failure: CFLAGS=-fno-asynchronous-unwind-tables make clean lib"
|
||||||
|
cat list-symbols.make.log >&2
|
||||||
|
}
|
||||||
|
rm list-symbols.make.log
|
||||||
mv include/mbedtls/config.h.bak include/mbedtls/config.h
|
mv include/mbedtls/config.h.bak include/mbedtls/config.h
|
||||||
|
if [ -n "$make_ret" ]; then
|
||||||
|
exit "$make_ret"
|
||||||
|
fi
|
||||||
|
|
||||||
if uname | grep -F Darwin >/dev/null; then
|
if uname | grep -F Darwin >/dev/null; then
|
||||||
nm -gUj library/libmbed*.a 2>/dev/null | sed -n -e 's/^_//p'
|
nm -gUj library/libmbed*.a 2>/dev/null | sed -n -e 's/^_//p'
|
||||||
elif uname | grep -F Linux >/dev/null; then
|
elif uname | grep -F Linux >/dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue