Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 26463 invoked from network); 18 Dec 2006 12:22:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 12:22:35 -0000 Received: (qmail 67290 invoked by uid 500); 18 Dec 2006 12:22:40 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 67261 invoked by uid 500); 18 Dec 2006 12:22:40 -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 67252 invoked by uid 99); 18 Dec 2006 12:22:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 04:22:40 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 216.86.168.178 is neither permitted nor denied by domain of geir@pobox.com) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 04:22:29 -0800 Received: from [192.168.1.104] (unknown [67.86.14.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 5465F5198D for ; Mon, 18 Dec 2006 07:22:06 -0500 (EST) Message-ID: <458687F3.4050601@pobox.com> Date: Mon, 18 Dec 2006 07:22:11 -0500 From: "Geir Magnusson Jr." Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [build] Changing native compiler options by setting environment variables References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Alexey Petrenko wrote: > 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. Several comments : 1) Yarg! not the dreaded "HY" prefix. Your name isn't "Ay", mine isn't "Gr" so Harmony's name isn't "Hy" :) 2) Cool but... is there a way we can convert this facility to command line properties? Using environment vars always strikes me as a side effect - IOW, looking at a script that has : $ant -Dhy.cfg=release you have no clue what ephemeral values were set in the environment... 3) I agree with tim that this is beyond scope for "Getting Started" - maybe an "Advanced Topics in Building" page? geir