public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [objc] testsuite set of -I
@ 2007-11-11  9:32 Aldy Hernandez
  2007-11-11 10:22 ` Joseph S. Myers
  0 siblings, 1 reply; 3+ messages in thread
From: Aldy Hernandez @ 2007-11-11  9:32 UTC (permalink / raw)
  To: mrs, n.pero, pinskia; +Cc: gcc-patches

Hi folks.

Is there any reason why we set -I only if we have built libobjc?  This
doesn't make sense.  This just means we won't be able to test compile
only tests (with include files) unless libobjc is built.

I'm running into this while building tuples.  I have a working objc
compiler, but not libobjc because our tuples->RTL pass is not working
yet, so I can't test even compile tests without this patch.

Is this OK for mainline after it re-opens?

Aldy

=== obj-c++.exp
==================================================================
--- obj-c++.exp	(revision 130048)
+++ obj-c++.exp	(local)
@@ -317,10 +317,8 @@
 	}
     }
 
-    if { $libobjc_dir != "" } {
-	set objc_include_dir "${srcdir}/../../libobjc"
-	lappend options "additional_flags=-I${objc_include_dir}"
-    }
+    set objc_include_dir "${srcdir}/../../libobjc"
+    lappend options "additional_flags=-I${objc_include_dir}"
 
     lappend options "additional_flags=[libio_include_flags]"
     lappend options "compiler=$OBJCXX_UNDER_TEST";
=== objc.exp
==================================================================
--- objc.exp	(revision 130048)
+++ objc.exp	(local)
@@ -179,9 +179,9 @@
 	     [lookfor_file ${objcpath} libobjc/.libs/libobjc-gnu.${shlib_ext}]
 	}
     }
+    set objc_include_dir "${srcdir}/../../libobjc"
+    lappend options "additional_flags=-I${objc_include_dir}"
     if { $libobjc_dir != "" } {
-	set objc_include_dir "${srcdir}/../../libobjc"
-	lappend options "additional_flags=-I${objc_include_dir}"
 	set libobjc_dir [file dirname ${libobjc_dir}]
 	set objc_link_flags "-L${libobjc_dir}"
 	lappend options "additional_flags=${objc_link_flags}"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [objc] testsuite set of -I
  2007-11-11  9:32 [objc] testsuite set of -I Aldy Hernandez
@ 2007-11-11 10:22 ` Joseph S. Myers
  2007-11-12 15:18   ` Aldy Hernandez
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph S. Myers @ 2007-11-11 10:22 UTC (permalink / raw)
  To: Aldy Hernandez; +Cc: mrs, n.pero, pinskia, gcc-patches

On Sat, 10 Nov 2007, Aldy Hernandez wrote:

> Is there any reason why we set -I only if we have built libobjc?  This
> doesn't make sense.  This just means we won't be able to test compile

It does make sense - if you're testing an installed toolchain you should 
use the installed objc headers installed with that toolchain and not those 
in the source tree, if not testing an installed toolchain then you are 
expected to have a full build tree.

Include and library paths for installed testing should be similar to those 
used by real toolchain users.  Real users won't have -I paths pointing to 
the libobjc source directory, so neither should installed toolchain 
testing.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [objc] testsuite set of -I
  2007-11-11 10:22 ` Joseph S. Myers
@ 2007-11-12 15:18   ` Aldy Hernandez
  0 siblings, 0 replies; 3+ messages in thread
From: Aldy Hernandez @ 2007-11-12 15:18 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: mrs, n.pero, pinskia, gcc-patches

On Sun, Nov 11, 2007 at 12:44:28AM +0000, Joseph S. Myers wrote:
> On Sat, 10 Nov 2007, Aldy Hernandez wrote:
> 
> > Is there any reason why we set -I only if we have built libobjc?  This
> > doesn't make sense.  This just means we won't be able to test compile
> 
> It does make sense - if you're testing an installed toolchain you should 
> use the installed objc headers installed with that toolchain and not those 
> in the source tree, if not testing an installed toolchain then you are 
> expected to have a full build tree.

Actually, this makes perfect sense.  Thanks for your explanation.

Aldy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-12 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-11  9:32 [objc] testsuite set of -I Aldy Hernandez
2007-11-11 10:22 ` Joseph S. Myers
2007-11-12 15:18   ` Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).