This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: SV: SV: Adding another configuration feature to libjava for arm-elfmetal configurations
- From: chris burdess <dog at bluezoo dot org>
- To: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 2 May 2003 08:46:25 +0100
- Subject: Re: SV: SV: Adding another configuration feature to libjava for arm-elfmetal configurations
- References: <41D1051F31A2674C99E41CA28EE73498018C46@isp-ex2k.intellimade.net>
Øyvind Harboe wrote:
> Regarding conditional compilation.
>
> Couldn't you use some annotation scheme like the
> web-guys are so crazy about?
why not just use cpp? e.g.:
public class t
{
public static void main(String[] args)
{
#ifdef MYVAR
System.out.println("Compiled with MYVAR");
#endif
System.out.println("Hello world!");
}
}
# cpp -P -D MYVAR t.java.pp t.java
# gcj -C t.java
this would seem to be a pretty standard and well-understood conditional
compilation scheme, as well as being part of gcc.
--
chris burdess