OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge "Split up the stack space tests into their own noinline functions."
[android-x86/bionic.git]
/
tests
/
file-check-cxx
1
#!/bin/bash
2
FILECHECK=$1
3
CXX=$2
4
PREFIX=$3
5
shift 3
6
SOURCE=$(echo "$@" | grep -oP '\S+\.cpp\b')
7
OBJ=$(echo "$@" | grep -oP '\S+\.o\b')
8
$CXX "$@" -Wno-error 2>&1 | $FILECHECK -check-prefix=$PREFIX $SOURCE
9
if [ "$?" -eq 0 ]; then
10
touch $OBJ
11
else
12
exit 1
13
fi