Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: Set env var for target when building
From: "Johnson, Andrew N." <anj@aps.anl.gov>
To: Hugo Slepicka <hhslepicka@gmail.com>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 17 Jan 2017 03:34:01 +0000
Hi Hugo,

You can put export statements in those same CONFIG_SITE.Common.<arch> files, they only get executed when compiling for that specific architecture, i.e.
    export VAR = value
which sets VAR in the environment for all commands executed in the O.<arch> directories but won't affect any other architectures.

HTH,

- Andrew

-- 
Sent from my iPad

On Jan 16, 2017, at 6:59 PM, Hugo Slepicka <hhslepicka@gmail.com> wrote:

For now what I am doing is hijacking the GNU_DIR variable in my <>/configure/os/CONFIG_SITE.Common.<target> in order to add the environment variable before the compiler.
Ugly but it is working so far.

On Mon, Jan 16, 2017 at 4:52 PM Hugo Slepicka <hhslepicka@gmail.com> wrote:
Hi All,

I would like to set an environment variable to customize or disable CCACHE when building for a specific set of targets.

Where would be the correct place to do that?

Thank you,
Hugo

Replies:
Re: Set env var for target when building Hugo Slepicka
References:
Set env var for target when building Hugo Slepicka
Re: Set env var for target when building Hugo Slepicka

Navigate by Date:
Prev: Re: Set env var for target when building Hugo Slepicka
Next: Re: Looking for someone to help building the control system of XAFS/XRF beamline at SESAME Mark Clift
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: Re: Set env var for target when building Hugo Slepicka
Next: Re: Set env var for target when building Hugo Slepicka
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 14 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·