harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject Re: [build] Changing native compiler options by setting environment variables
Date Fri, 15 Dec 2006 13:50:57 GMT
That's for class library build...

2006/12/15, Alexey Petrenko <alexey.a.petrenko@gmail.com>:
> Guys,
>
> I've implemented possibility to set native compiler options for debug
> and release mode through environment variables. HYRELEASECFLAGS  for
> release flags and HYDEBUGCFLAGS for debug.
>
> For example, if you want to set more aggressive optimizing options you
> can do the following:
> === Windows ===
> c:>set HYRELEASECFLAGS=-O2
> c:>ant -Dhy.cfg=release
> === Windows ===
>
> === Unix ===
> $export HYRELEASECFLAGS=-O2
> $ant -Dhy.cfg=release
> === Unix ===
>
> I hope this will be useful.
>
> SY, Alexey
>
> P.S. Nadya, you are a doc guru :) Could you please publish info about
> this environment variables and release/debug switch somewhere on the
> site? Thanks in advance.
>
> 2006/12/15, apetrenko@apache.org <apetrenko@apache.org>:
> > Author: apetrenko
> > Date: Fri Dec 15 04:05:55 2006
> > New Revision: 487526
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=487526
> > Log:
> > This patch adds possibility to change release and debug compiler options on Windows
by setting environment variable
> >
> > Modified:
> >    harmony/enhanced/classlib/trunk/depends/build/defines.mak
> >
> > Modified: harmony/enhanced/classlib/trunk/depends/build/defines.mak
> > URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/depends/build/defines.mak?view=diff&rev=487526&r1=487525&r2=487526
> > ==============================================================================
> > --- harmony/enhanced/classlib/trunk/depends/build/defines.mak (original)
> > +++ harmony/enhanced/classlib/trunk/depends/build/defines.mak Fri Dec 15 04:05:55
2006
> > @@ -34,12 +34,16 @@
> >   -WX -GF -Gs -MD -Zm400 \
> >   -D_DLL -D_MT -D_WINSOCKAPI_ \
> >   /I$(HY_HDK)\include /I$(HY_HDK)\jdk\include /I.
> > -
> > +
> > +!ifndef HYDEBUGCFLAGS
> >  HYDEBUGCFLAGS = \
> >   -Zi -Od
> > -
> > +!endif
> > +
> > +!ifndef HYRELEASECFLAGS
> >  HYRELEASECFLAGS = \
> > -  -Ogityb1
> > +  -Ogityb1
> > +!endif
> >
> >  !IF "$(HY_CFG)" == "debug"
> >  HYCFLAGS = $(HYDEBUGCFLAGS) $(HYCOMMONCFLAGS)
> >
> >
> >
>

Mime
View raw message