Displaying 3 results from an estimated 3 matches for "enablefoobar".
2018 Sep 06
3
Environment variables
Yes, but in your example getenv is called every time enableFooBar needs
to be initialized. What if your code is itself wrapped inside another
loop you can't see (for example, the PassManager invoking passes)?
Maybe I'm being overly pedantic.
We use a lot of environment variables in our compiler because it's
really super annoying and takes a lot of...
2018 Sep 06
2
Environment variables
Ok, thanks! I'm not dealing with UTF-8 so I don't think Process::GetEnv
will work. I was looking for something that caches calls to getenv so
checks could be put into tight(-ish) loops without too much performance
impact.
Would such a utility be of interest to the community?
-David
Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> writes:
>
2018 Sep 06
2
Environment variables
...kefiles bringing you back to square one where you have to
> understand and change complex third party makefiles...
>
> - Matthias
>
> > On Sep 6, 2018, at 10:44 AM, David Greene <dag at cray.com> wrote:
> >
> > Yes, but in your example getenv is called every time enableFooBar needs
> > to be initialized. What if your code is itself wrapped inside another
> > loop you can't see (for example, the PassManager invoking passes)?
> >
> > Maybe I'm being overly pedantic.
> >
> > We use a lot of environment variables in our compiler...