harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konovalova, Svetlana" <svetlana.konoval...@intel.com>
Subject RE: [build] Changing native compiler options by setting environment variables
Date Fri, 15 Dec 2006 15:13:23 GMT
IMHO we can post this useful info on the Getting Started For
Contributors page [1] > Building the Class Library section.
I do not mind to create the patch to update the QH page. )
Any objections?

[1] http://harmony.apache.org/quickhelp_contributors.html

Best regards,
Sveta

-----Original Message-----
From: Alexey Petrenko [mailto:alexey.a.petrenko@gmail.com] 
Sent: Friday, December 15, 2006 4:51 PM
To: dev@harmony.apache.org
Subject: Re: [build] Changing native compiler options by setting
environment variables

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/bui
ld/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