diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-05-05 04:05:35 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-05-05 04:05:35 +0000 |
commit | 08cce8fe0c24e5f3b8d4c1c94da7fb71fa0e180a (patch) | |
tree | 4cf7cee10aa61552d83eabb4af2c7a22099a5b18 | |
parent | 86abebe2167a2bec26217d7c8a0c7397c249e331 (diff) | |
download | gcc-08cce8fe0c24e5f3b8d4c1c94da7fb71fa0e180a.zip gcc-08cce8fe0c24e5f3b8d4c1c94da7fb71fa0e180a.tar.gz gcc-08cce8fe0c24e5f3b8d4c1c94da7fb71fa0e180a.tar.bz2 |
libstdc++.exp (v3-build_support): Look for __GTHREADS...
* testsuite/lib/libstdc++.exp (v3-build_support): Look for
__GTHREADS, rather than _GLIBCXX_HAVE_GTHR_DEFAULT, to determine
whether or not thread support is available.
From-SVN: r99256
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0eb21b1..414e883 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2005-05-04 Mark Mitchell <mark@codesourcery.com> + * testsuite/lib/libstdc++.exp (v3-build_support): Look for + __GTHREADS, rather than _GLIBCXX_HAVE_GTHR_DEFAULT, to determine + whether or not thread support is available. + * docs/html/test.html: Explain how to run the testsuite on an installed directory. diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 7f80085..60624df 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -314,17 +314,17 @@ proc v3-build_support {} { set config_src "config.cc" set f [open $config_src "w"] puts $f "#include <bits/c++config.h>" + puts $f "#include <bits/gthr.h>" close $f set preprocessed [v3_target_compile $config_src "" \ preprocess "additional_flags=-dN"] - foreach l $preprocessed { - if { [string first "_GLIBCXX_USE_WCHAR_T" $l] != -1 } { - verbose -log "wchar_t support detected" - set v3-wchar_t 1 - } elseif { [string first "_GLIBCXX_HAVE_GTHR_DEFAULT" $l] != -1 } { - verbose -log "thread support detected" - set v3-threads 1 - } + if { [string first "_GLIBCXX_USE_WCHAR_T" $preprocessed] != -1 } { + verbose -log "wchar_t support detected" + set v3-wchar_t 1 + } + if { [string first "__GTHREADS" $preprocessed] != -1 } { + verbose -log "thread support detected" + set v3-threads 1 } # Build the support objects. |