Commit 3aa4b66a by Jonathan Wakely Committed by Jonathan Wakely

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
parent 93cb9a5a
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
......
...@@ -7001,9 +7001,9 @@ proc check_effective_target_masm_intel {} { ...@@ -7001,9 +7001,9 @@ proc check_effective_target_masm_intel {} {
# Return 1 if the language for the compiler under test is C. # Return 1 if the language for the compiler under test is C.
proc check_effective_target_c { } { proc check_effective_target_c { } {
global tool global tool
if [string match $tool "gcc"] { if [string match $tool "gcc"] {
return 1 return 1
} }
return 0 return 0
} }
...@@ -7011,9 +7011,9 @@ proc check_effective_target_c { } { ...@@ -7011,9 +7011,9 @@ proc check_effective_target_c { } {
# Return 1 if the language for the compiler under test is C++. # Return 1 if the language for the compiler under test is 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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment