OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [scripts/] [testsuite_flags.in] - Blame information for rev 20

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 jlechner
#!/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 
8
#            Gabriel Dos Reis 
9
#
10
 
11
# Print a message saying how this script is intended to be invoked
12
print_usage() {
13
    cat <
14
Usage:
15
    testsuite_flags --install-includes
16
                    --build-includes
17
                    --build-cxx
18
                    --install-cxx
19
                    --cxxflags
20
                    --cxxpchflags
21
EOF
22
}
23
 
24
# Establish configure-generated directory structure.
25
BUILD_DIR=@glibcxx_builddir@
26
SRC_DIR=@glibcxx_srcdir@
27
PREFIX_DIR=@glibcxx_prefixdir@
28
query=$1
29
 
30
case ${query} in
31
    --install-includes)
32
      INCLUDES="-I${SRC_DIR}/testsuite"
33
      echo ${INCLUDES}
34
      ;;
35
    --build-includes)
36
      INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@
37
                -I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite"
38
      echo ${INCLUDES}
39
      ;;
40
    --install-cxx)
41
      CXX=${PREFIX_DIR}/bin/g++
42
      echo ${CXX}
43
      ;;
44
    --build-cxx)
45
      CXX_build="@CXX@"
46
      CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
47
      echo ${CXX}
48
      ;;
49
    --cxxflags)
50
      CXXFLAGS_save="-g -O2 -D_GLIBCXX_ASSERT"
51
      CXXFLAGS_config='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
52
                      @EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcxx_localedir@" '
53
      echo ${CXXFLAGS_save} ${CXXFLAGS_config}
54
      ;;
55
    --cxxpchflags)
56
      PCHFLAGS="@glibcxx_PCHFLAGS@"
57
      echo ${PCHFLAGS}
58
      ;;
59
    *)
60
      print_usage
61
      ;;
62
esac
63
 
64
exit 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.