1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 <2017> 2018 2019 2020 2021 2022 2023 2024 | 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> 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Set env var for target when building |
From: | Hugo Slepicka <[email protected]> |
To: | "Johnson, Andrew N." <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Tue, 17 Jan 2017 16:42:52 +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 = valuewhich 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 iPadFor 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 <[email protected]> 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