Skip to content
Snippets Groups Projects
Commit ca6fc9bc authored by bkoz's avatar bkoz
Browse files

2001-05-18  Angela Marie Thomas <angela@cygnus.com>

        * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set flags
        appropriately for remote testing and testing installed files without
        a build dir.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42272 138bc75d-0d04-0410-961f-82ee72b054a4
parent d210f3ff
No related branches found
No related tags found
No related merge requests found
2001-05-18 Angela Marie Thomas <angela@cygnus.com>
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set flags
appropriately for remote testing and testing installed files without
a build dir.
2001-05-18 Benjamin Kosnik <bkoz@redhat.com> 2001-05-18 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
......
...@@ -30,9 +30,29 @@ proc libstdc++-v3-init { args } { ...@@ -30,9 +30,29 @@ proc libstdc++-v3-init { args } {
global gluefile wrap_flags global gluefile wrap_flags
set blddir [lookfor_file $outdir libstdc++-v3] set blddir [lookfor_file $outdir libstdc++-v3]
set cxx [exec sh ${blddir}/testsuite_flags --build-cxx]
set cxxflags [exec sh ${blddir}/testsuite_flags --cxxflags] if [is_remote host] {
set includes [exec sh ${blddir}/testsuite_flags --build-includes] set header [remote_download host ${srcdir}/debug_assert.h]
if { $header == "" } {
verbose -log "Unable to download ${srcdir}/debug_assert.h to host."
return "untested"
}
set cxx [transform "g++"]
set cxxflags "-ggdb3 -DDEBUG_ASSERT"
set includes "-I./"
} else {
# If we find a testsuite_flags file, we're testing in the build dir.
set flags_file "${blddir}/testsuite_flags"
if { [file exists $flags_file] } {
set cxx [exec sh $flags_file --build-cxx]
set cxxflags [exec sh $flags_file --cxxflags]
set includes [exec sh $flags_file --build-includes]
} else {
set cxx [transform "g++"]
set cxxflags "-ggdb3 -DDEBUG_ASSERT"
set includes "-I${srcdir}"
}
}
# By default, we assume we want to run program images. # By default, we assume we want to run program images.
global dg-do-what-default global dg-do-what-default
......
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