Skip to content
Snippets Groups Projects
Commit cce4884b authored by Mark Mitchell's avatar Mark Mitchell Committed by Mark Mitchell
Browse files

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
parent 7b4047a0
No related branches found
No related tags found
No related merge requests found
2005-03-25 Mark Mitchell <mark@codesourcery.com> 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 * testsuite/lib/libstdc++.exp (v3-build_support): Pass -w when
compiling support objects. compiling support objects.
......
...@@ -183,6 +183,14 @@ proc libstdc++_init { testfile } { ...@@ -183,6 +183,14 @@ proc libstdc++_init { testfile } {
set cxx [transform "g++"] set cxx [transform "g++"]
set cxxflags "-g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0" set cxxflags "-g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0"
set includes "-I${srcdir}" 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\""
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment