f04a8bc226
Actual tests to follow... Bug: 17782583 Change-Id: I22857f19899c3b39dbc2e5473ad3be1a8a291139
13 lines
252 B
Bash
Executable file
13 lines
252 B
Bash
Executable file
#!/bin/bash
|
|
FILECHECK=$1
|
|
CXX=$2
|
|
PREFIX=$3
|
|
ARGS=${*:4}
|
|
SOURCE=$(echo $ARGS | grep -oP '\S+\.cpp\b')
|
|
OBJ=$(echo $ARGS | grep -oP '\S+\.o\b')
|
|
$CXX $ARGS 2>&1 | $FILECHECK -check-prefix=$PREFIX $SOURCE
|
|
if [ "$?" -eq 0 ]; then
|
|
touch $OBJ
|
|
else
|
|
exit 1
|
|
fi
|