Bash程序  |  17行  |  326 B

# Check if clang crash on non-ascii comments
# See b.android.com/81440
#

result=$(NDK_TOOLCHAIN_VERSION=clang $NDK/ndk-build -B APP_ABI=armeabi 2>&1)
echo $result | grep -q "error: expected"
RET=$?
rm -rf obj

if [ $RET != 0 ]; then
  echo "Error: did not find 'error: expected'"
  echo "Output:"
  echo $result
  exit 1
fi