source: trunk/src/gcc/libstdc++-v3/testsuite_flags.in@ 1465

Last change on this file since 1465 was 1392, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/sh
2
3#
4# This script computes the various flags needed to run GNU C++ testsuites
5# (compiler specific as well as library specific).
6#
7# Written by Benjamin Kosnik <[email protected]>
8# Gabriel Dos Reis <[email protected]>
9#
10
11# Print a message saying how this script is intended to be invoked
12print_usage() {
13 cat <<EOF
14Usage:
15 testsuite_flags --install-includes
16 --build-includes
17 --build-cxx
18 --install-cxx
19 --cxxflags
20EOF
21}
22
23# Establish configure-generated directory structure.
24BUILD_DIR=@glibcpp_builddir@
25SRC_DIR=@glibcpp_srcdir@
26PREFIX_DIR=@glibcpp_prefixdir@
27query=$1
28
29case ${query} in
30 --install-includes)
31 INCLUDES="-I${SRC_DIR}/testsuite"
32 echo ${INCLUDES}
33 ;;
34 --build-includes)
35 INCLUDES="-nostdinc++ @GLIBCPP_INCLUDES@
36 -I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
37 -I${SRC_DIR}/include/backward
38 -I${SRC_DIR}/testsuite"
39 echo ${INCLUDES}
40 ;;
41 --install-cxx)
42 CXX=${PREFIX_DIR}/bin/g++
43 echo ${CXX}
44 ;;
45 --build-cxx)
46 CXX_build="@glibcpp_CXX@ ${PCHFLAGS}"
47 CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
48 echo ${CXX}
49 ;;
50 --cxxflags)
51 CXXFLAGS=' -g @SECTION_FLAGS@ @SECTION_LDFLAGS@
52 -fmessage-length=0 @EXTRA_CXX_FLAGS@
53 -DDEBUG_ASSERT -DLOCALEDIR="@glibcpp_localedir@" '
54 echo ${CXXFLAGS}
55 ;;
56 *)
57 print_usage
58 ;;
59esac
60
61exit 0
Note: See TracBrowser for help on using the repository browser.