diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-05 04:05:35 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-05 04:05:35 +0000 |
commit | 1d171a16fb74b7fc3179c57a7de72a6927824673 (patch) | |
tree | 4cf7cee10aa61552d83eabb4af2c7a22099a5b18 /libstdc++-v3/testsuite | |
parent | 92c0223838d201746600a71a11a469e545928d83 (diff) | |
download | gcc-1d171a16fb74b7fc3179c57a7de72a6927824673.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99256 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 7f8008538eb..60624df2603 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. |