2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
* lib/objc.exp (objc_target_compile): Check for -fgnu-runtime
in ${options} instead of [target_info name].
* lib/obj-c++.exp (objc_target_compile): Likewise.
From-SVN: r103063
+2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * lib/objc.exp (objc_target_compile): Check for -fgnu-runtime
+ in ${options} instead of [target_info name].
+ * lib/obj-c++.exp (objc_target_compile): Likewise.
+
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
* objc.dg/stubify-2.m: Correct the name of the rtl dump file.
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a]
if { $libobjc_dir == ""} {
- verbose "see if we have -fgnu-runtime in [target_info name]"
- if [regexp ".*-fgnu-runtime.*" [target_info name]] {
+ verbose "see if we have -fgnu-runtime in options"
+ if [regexp ".*-fgnu-runtime.*" "${options}" ] {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc-gnu.a]
}
}
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a]
if { $libobjc_dir == ""} {
- verbose "see if we have -fgnu-runtime in [target_info name]"
- if [regexp ".*-fgnu-runtime.*" [target_info name]] {
+ verbose "see if we have -fgnu-runtime in options"
+ if [regexp ".*-fgnu-runtime.*" "${options}"] {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc-gnu.a]
}
}