diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-03-25 23:24:57 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-03-25 23:24:57 +0000 |
commit | cce4884b8a8f99e2f65c64b924d20f0e9fe95f00 (patch) | |
tree | bd45ac05a3603570393b6abc676ad955443e7df9 | |
parent | 7b4047a0de197032655bdb45aba1d948614514a3 (diff) | |
download | gcc-cce4884b8a8f99e2f65c64b924d20f0e9fe95f00.zip gcc-cce4884b8a8f99e2f65c64b924d20f0e9fe95f00.tar.gz gcc-cce4884b8a8f99e2f65c64b924d20f0e9fe95f00.tar.bz2 |
libstdc++.exp (libstdc++_init): Define LOCALEDIR when testing an installed compiler.
* testsuite/lib/libstdc++.exp (libstdc++_init): Define LOCALEDIR
when testing an installed compiler.
From-SVN: r97070
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ee66ccb..8424ae5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2005-03-25 Mark Mitchell <mark@codesourcery.com> + * testsuite/lib/libstdc++.exp (libstdc++_init): Define LOCALEDIR + when testing an installed compiler. + * testsuite/lib/libstdc++.exp (v3-build_support): Pass -w when compiling support objects. diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 9c9ace2..2f36c7f 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -183,6 +183,14 @@ proc libstdc++_init { testfile } { set cxx [transform "g++"] set cxxflags "-g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0" set includes "-I${srcdir}" + # Guess at the location of the installed locale files. + # (It would be nice if "gcc --print-file-name" could find + # message files, but it cannot.) + set absolute_cxx [which $cxx] + if { $absolute_cxx != "" } { + set localedir "[file dirname $absolute_cxx]/../share/locale" + } + set cxxflags "$cxxflags -DLOCALEDIR=\"$localedir\"" } } |