diff options
Diffstat (limited to 'externals/xbyak/test/test_address.sh')
-rwxr-xr-x | externals/xbyak/test/test_address.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/externals/xbyak/test/test_address.sh b/externals/xbyak/test/test_address.sh index d283a5f3..6c9e9b0d 100755 --- a/externals/xbyak/test/test_address.sh +++ b/externals/xbyak/test/test_address.sh @@ -1,13 +1,17 @@ #!/bin/sh +set -e + FILTER="grep -v warning" sub() { -CFLAGS="-Wall -fno-operator-names -I../ $OPT2" +CFLAGS="-Wall -I../ $OPT2" +CXX=${CXX:=g++} + echo "compile address.cpp" -g++ $CFLAGS address.cpp -o address +$CXX $CFLAGS address.cpp -o address ./address $1 > a.asm echo "asm" @@ -17,7 +21,7 @@ awk '{printf "%s", sub(/-$/, "", $3) ? $3 : $3 ORS}' a.lst | $FILTER > ok.lst echo "xbyak" ./address $1 jit > nm.cpp echo "compile nm_frame.cpp" -g++ $CFLAGS -DXBYAK_TEST nm_frame.cpp -o nm_frame +$CXX $CFLAGS -DXBYAK_TEST nm_frame.cpp -o nm_frame ./nm_frame > x.lst diff ok.lst x.lst && echo "ok" |