Make check_effective_target_c++ work for libstdc++

* lib/target-supports.exp (check_effective_target_c): Fix indentation.
	(check_effective_target_c++): Likewise. Also match for libstdc++.

From-SVN: r238916
This commit is contained in:
Jonathan Wakely 2016-07-31 14:02:17 +01:00 committed by Jonathan Wakely
parent 93cb9a5aa1
commit 3aa4b66ad9
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2016-07-31 Jonathan Wakely <jwakely@redhat.com>
* lib/target-supports.exp (check_effective_target_c): Fix indentation.
(check_effective_target_c++): Likewise. Also match for libstdc++.
2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org> 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/41922 PR fortran/41922

View File

@ -7012,7 +7012,7 @@ proc check_effective_target_c { } {
proc check_effective_target_c++ { } { proc check_effective_target_c++ { } {
global tool global tool
if [string match $tool "g++"] { if { [string match $tool "g++"] || [string match $tool "libstdc++"] } {
return 1 return 1
} }
return 0 return 0