check_compile (UNIQUE_ID): New.

2005-08-26  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/check_compile (UNIQUE_ID): New. Use to name output files.

From-SVN: r103534
This commit is contained in:
Benjamin Kosnik 2005-08-26 20:31:48 +00:00 committed by Benjamin Kosnik
parent b207d6e26f
commit 327d749cf8
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-08-26 Benjamin Kosnik <bkoz@redhat.com>
* scripts/check_compile (UNIQUE_ID): New. Use to name output files.
2005-08-26 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/23081

View File

@ -32,17 +32,21 @@ CXX="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS $TEST_FLAGS"
TESTS_FILE="testsuite_files"
#mkdir binaries
UNIQUE_ID=0
for NAME in `cat $TESTS_FILE`
do
if $RUN; then
echo $NAME
FILE_NAME="`basename $NAME`"
OUTPUT_NAME="`echo $FILE_NAME | sed 's/cc$/s/'`"
OUTPUT_NAME=$UNIQUE_ID
$CXX $SRC_DIR/testsuite/$NAME -o $OUTPUT_NAME
if [ -f $OUTPUT_NAME ]; then
# mv $OUTPUT_NAME binaries
rm $OUTPUT_NAME
fi
echo ""
let UNIQUE_ID+=1
fi
done