upload android base code part3
This commit is contained in:
parent
71b83c22f1
commit
b9e30e05b1
15122 changed files with 2089659 additions and 0 deletions
13
android/bionic/tests/file-check-cxx
Executable file
13
android/bionic/tests/file-check-cxx
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
FILECHECK=$1
|
||||
CXX=$2
|
||||
PREFIX=$3
|
||||
shift 3
|
||||
SOURCE=$(echo "$@" | grep -oP '\S+\.cpp\b')
|
||||
OBJ=$(echo "$@" | grep -oP '\S+\.o\b')
|
||||
$CXX "$@" -Wno-error 2>&1 | $FILECHECK -check-prefix=$PREFIX $SOURCE
|
||||
if [ "$?" -eq 0 ]; then
|
||||
touch $OBJ
|
||||
else
|
||||
exit 1
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue