Commit 4f5dce2b by Andrew Pinski Committed by Andrew Pinski

objc.exp (objc_target_compile): Check for -fgnu-runtime in ${options} instead of…

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
parent ffacdfa1
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu> 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. * objc.dg/stubify-2.m: Correct the name of the rtl dump file.
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu> 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
......
...@@ -306,8 +306,8 @@ proc obj-c++_target_compile { source dest type options } { ...@@ -306,8 +306,8 @@ proc obj-c++_target_compile { source dest type options } {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a] set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a]
if { $libobjc_dir == ""} { if { $libobjc_dir == ""} {
verbose "see if we have -fgnu-runtime in [target_info name]" verbose "see if we have -fgnu-runtime in options"
if [regexp ".*-fgnu-runtime.*" [target_info name]] { 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-gnu.a]
} }
} }
......
...@@ -159,8 +159,8 @@ proc objc_target_compile { source dest type options } { ...@@ -159,8 +159,8 @@ proc objc_target_compile { source dest type options } {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a] set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a]
if { $libobjc_dir == ""} { if { $libobjc_dir == ""} {
verbose "see if we have -fgnu-runtime in [target_info name]" verbose "see if we have -fgnu-runtime in options"
if [regexp ".*-fgnu-runtime.*" [target_info name]] { 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-gnu.a]
} }
} }
......
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