gcc/libstdc++-v3/scripts/testsuite_flags.in
Benjamin Kosnik 5dfda04264 testsuite_flags.in (--build-includes): Remove extraneous paths for libio.
2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/testsuite_flags.in (--build-includes): Remove extraneous
	paths for libio.
	* testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
	(test03): Include typeinfo for bad_cast.
	* testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
	* testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
	* testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.

From-SVN: r69651
2003-07-21 22:12:53 +00:00

61 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
#
# This script computes the various flags needed to run GNU C++ testsuites
# (compiler specific as well as library specific).
#
# Written by Benjamin Kosnik <bkoz@redhat.com>
# Gabriel Dos Reis <gdr@codesourcery.com>
#
# Print a message saying how this script is intended to be invoked
print_usage() {
cat <<EOF
Usage:
testsuite_flags --install-includes
--build-includes
--build-cxx
--install-cxx
--cxxflags
EOF
}
# Establish configure-generated directory structure.
BUILD_DIR=@glibcxx_builddir@
SRC_DIR=@glibcxx_srcdir@
PREFIX_DIR=@glibcxx_prefixdir@
query=$1
case ${query} in
--install-includes)
INCLUDES="-I${SRC_DIR}/testsuite"
echo ${INCLUDES}
;;
--build-includes)
INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@ -I${SRC_DIR}/libsupc++
-I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite"
echo ${INCLUDES}
;;
--install-cxx)
CXX=${PREFIX_DIR}/bin/g++
echo ${CXX}
;;
--build-cxx)
PCHFLAGS="@glibcxx_PCHFLAGS@"
CXX_build="@glibcxx_CXX@ ${PCHFLAGS}"
CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
echo ${CXX}
;;
--cxxflags)
CXXFLAGS_save="-g -O2"
CXXFLAGS_config='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
@EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcxx_localedir@" '
echo ${CXXFLAGS_save} ${CXXFLAGS_config}
;;
*)
print_usage
;;
esac
exit 0