2aa89cbb78
2004-03-04 Paolo Carlini <pcarlini@suse.de> * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to CXXFLAGS_save. * testsuite/lib/libstdc++.exp: Don't add it conditionally to DEFAULT_CXXFLAGS. * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT" from the dg-options. * testsuite/23_containers/vector/invalidation/1.cc: Likewise. * testsuite/23_containers/vector/invalidation/2.cc: Likewise. * testsuite/23_containers/vector/invalidation/3.cc: Likewise. * testsuite/23_containers/vector/invalidation/4.cc: Likewise. * testsuite/23_containers/vector/resize/1.cc: Likewise. * testsuite/26_numerics/complex_value.cc: Likewise. * testsuite/27_io/ios_base/storage/1.cc: Likewise. * testsuite/27_io/ios_base/storage/2.cc: Likewise. * testsuite/27_io/ios_base/storage/3.cc: Likewise. * testsuite/27_io/manipulators/standard/char/2.cc: Likewise. * testsuite/27_io/objects/char/5.cc: Likewise. * testsuite/27_io/objects/wchar_t/5.cc: Likewise. * testsuite/backward/11460.cc: Likewise. * testsuite/thread/pthread7-rope.cc: Likewise. * testsuite/21_strings/basic_string/compare/char/1.cc: Add missing test variable. * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add missing test variable. From-SVN: r78942
65 lines
1.5 KiB
Bash
Executable File
65 lines
1.5 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
|
|
--cxxpchflags
|
|
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)
|
|
CXX_build="@CXX@"
|
|
CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
|
|
echo ${CXX}
|
|
;;
|
|
--cxxflags)
|
|
CXXFLAGS_save="-g -O2 -D_GLIBCXX_ASSERT"
|
|
CXXFLAGS_config='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
|
|
@EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcxx_localedir@" '
|
|
echo ${CXXFLAGS_save} ${CXXFLAGS_config}
|
|
;;
|
|
--cxxpchflags)
|
|
PCHFLAGS="@glibcxx_PCHFLAGS@"
|
|
echo ${PCHFLAGS}
|
|
;;
|
|
*)
|
|
print_usagex
|
|
;;
|
|
esac
|
|
|
|
exit 0
|