[llvm-dev] Environment variables
Reid Kleckner via llvm-dev
llvm-dev at lists.llvm.org
Wed Sep 5 14:23:47 PDT 2018
llvm::Process::GetEnv looks like it does the right thing.
I think we added it to deal with Unicode on Windows, though. We have plenty
of calls to getenv that are mostly looking for '1', '0', or variable
presence, and they pretty much work.
On Wed, Sep 5, 2018 at 2:12 PM David Greene via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Is there an LLVM-ish way to handle environment variables? Specifically,
> I want to check existence and/or value of an environment variable and
> take appropriate action.
>
> I was kind of surprised that LLVM doesn't seem to have any
> special/optimized way to deal with environment variables. The one
> Stackoverflow I found on it suggested using getenv().
>
> Thanks!
>
> -David
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180905/158051c8/attachment.html>
More information about the llvm-dev
mailing list