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, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
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)
