* lib/target-supports.exp (check_effective_target_c): Fix indentation.
(check_effective_target_c++): Likewise. Also match for libstdc++.
From-SVN: r238916
+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>
PR fortran/41922
# Return 1 if the language for the compiler under test is C.
proc check_effective_target_c { } {
- global tool
+ global tool
if [string match $tool "gcc"] {
- return 1
+ return 1
}
return 0
}
# Return 1 if the language for the compiler under test is C++.
proc check_effective_target_c++ { } {
- global tool
- if [string match $tool "g++"] {
- return 1
+ global tool
+ if { [string match $tool "g++"] || [string match $tool "libstdc++"] } {
+ return 1
}
return 0
}