objc.exp (objc_target_compile): Check for -fgnu-runtime in ${options} instead of [target_info name].

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
This commit is contained in:
Andrew Pinski 2005-08-13 23:36:21 +00:00 committed by Andrew Pinski
parent ffacdfa192
commit 4f5dce2b35
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -306,8 +306,8 @@ proc obj-c++_target_compile { source dest type options } {
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]
}
}

View File

@ -159,8 +159,8 @@ proc objc_target_compile { source dest type options } {
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]
}
}