Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 32347 invoked from network); 18 Dec 2006 12:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 12:42:30 -0000 Received: (qmail 15424 invoked by uid 500); 18 Dec 2006 12:42:35 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 15381 invoked by uid 500); 18 Dec 2006 12:42:34 -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 15372 invoked by uid 99); 18 Dec 2006 12:42:34 -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:42:34 -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:42:23 -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 B57FA5194F for ; Mon, 18 Dec 2006 07:42:01 -0500 (EST) Message-ID: <45868C9E.8010403@pobox.com> Date: Mon, 18 Dec 2006 07:42:06 -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: <458687F3.4050601@pobox.com> 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: > 2006/12/18, Geir Magnusson Jr. : >> 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" :) > HARMONYRELEASECFLAGS is toooo long :) > HY seems widely used. In -Dhy.cfg, for example :) Why not save 50% and just use "H"? :) or HARMONY_RELCFLAGS :) > >> 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... > Yep, I thought about it, but did not implement yet. It is easy to > implement feature anyway. We'll want it for automated builds - there's no way I'd want any snapshots or builds to depend on environment variables (any more than they do now...) IIRC, we still depend on CXX for DRLVM, but now that I think about it, I'm guessing that can be a cmd line flag as well... geir > > SY, Alexey