Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 37611 invoked from network); 15 Dec 2006 13:51:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2006 13:51:51 -0000 Received: (qmail 43323 invoked by uid 500); 15 Dec 2006 13:51:56 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 43294 invoked by uid 500); 15 Dec 2006 13:51:56 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 43285 invoked by uid 99); 15 Dec 2006 13:51:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 05:51:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexey.a.petrenko@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 05:51:45 -0800 Received: by nf-out-0910.google.com with SMTP id a4so1201613nfc for ; Fri, 15 Dec 2006 05:51:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LaNXI5EewSwjJ0LkPy75x5m8IHlffF1gEfk9ICwSPOYysL13YLACmmDnqEnZ/7wpxP9s9kNQoYchEzCu9Ep2CiY2mqAx39YmpWZut6Wj71uIyJMJYG3khUbinViYhmKXobCuF1KGv4NfI12zgKUszZGOYnI+gJLa3S4dnjImF4M= Received: by 10.49.26.18 with SMTP id d18mr2597596nfj.1166190657822; Fri, 15 Dec 2006 05:50:57 -0800 (PST) Received: by 10.78.107.10 with HTTP; Fri, 15 Dec 2006 05:50:57 -0800 (PST) Message-ID: Date: Fri, 15 Dec 2006 16:50:57 +0300 From: "Alexey Petrenko" To: dev@harmony.apache.org Subject: Re: [build] Changing native compiler options by setting environment variables In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org That's for class library build... 2006/12/15, Alexey Petrenko : > 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 : > > 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) > > > > > > >