diff options
author | Stan Shebs <shebs@apple.com> | 2002-07-01 18:54:39 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2002-07-01 18:54:39 +0000 |
commit | bbeb33f2620b2b0dfef64e80479ba1eada3a1feb (patch) | |
tree | ede5c14a0fd29ed7c892a2506ba4c1b276ec882e | |
parent | 97ebc06f5d025e98046e8f0aff98a144fe1cfa17 (diff) | |
download | gcc-bbeb33f2620b2b0dfef64e80479ba1eada3a1feb.zip gcc-bbeb33f2620b2b0dfef64e80479ba1eada3a1feb.tar.gz gcc-bbeb33f2620b2b0dfef64e80479ba1eada3a1feb.tar.bz2 |
objc.exp (objc_target_compile): Add the -I path to ObjC header here...
* lib/objc.exp (objc_target_compile): Add the -I path to ObjC
header here...
* lib/objc-torture.exp (objc-torture-compile): ...instead of here
(objc-torture-execute): or here.
From-SVN: r55142
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/lib/objc-torture.exp | 4 | ||||
-rw-r--r-- | gcc/testsuite/lib/objc.exp | 6 |
3 files changed, 15 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d7832d8..deeb34a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2002-07-01 Stan Shebs <shebs@apple.com> + + * lib/objc.exp (objc_target_compile): Add the -I path to ObjC + header here... + * lib/objc-torture.exp (objc-torture-compile): ...instead of here + (objc-torture-execute): or here. + Mon Jul 1 12:51:05 2002 J"orn Rennecke <joern.rennecke@superh.com> * gcc.c-torture/execute/arith-rand-ll.c: New test. diff --git a/gcc/testsuite/lib/objc-torture.exp b/gcc/testsuite/lib/objc-torture.exp index fbde5ec..ec05da9 100644 --- a/gcc/testsuite/lib/objc-torture.exp +++ b/gcc/testsuite/lib/objc-torture.exp @@ -81,7 +81,7 @@ proc objc-torture-compile { src option } { # Run the compiler and analyze the results. set options "" - lappend options "additional_flags=-w $option -I${srcdir}/../../libobjc" + lappend options "additional_flags=-w $option" set comp_output [objc_target_compile "$src" "$output" object $options]; objc_check_compile $testcase $option $output $comp_output @@ -160,7 +160,7 @@ proc objc-torture-execute { src args } { verbose "Testing $testcase, $option" 1 set options "" - lappend options "additional_flags=-w $option -I${srcdir}/../../libobjc" + lappend options "additional_flags=-w $option" if { $additional_flags != "" } { lappend options "additional_flags=$additional_flags"; } diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index a1431a1..9042a28 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -139,6 +139,7 @@ proc objc_target_compile { source dest type options } { global rootme; global tmpdir; global gluefile wrap_flags; + global srcdir global OBJC_UNDER_TEST global TOOL_OPTIONS global ld_library_path @@ -167,6 +168,11 @@ proc objc_target_compile { source dest type options } { if [target_info exists objc,no_varargs] { lappend options "additional_flags=-DNO_VARARGS" } + + # Point to the ObjC headers in libobjc. + set objc_include_dir "${srcdir}/../../libobjc" + lappend options "additional_flags=-I${objc_include_dir}" + set objcpath "[get_multilibs]" set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a] if { $libobjc_dir != "" } { |