[llvm-dev] Changing temp Dir: /var/tmp

Ramakrishna Mallireddy via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 24 06:50:40 PDT 2016


I have build swift+clang+llvm to iOS and I having Lock issues on /var/temp
during module compilation [on simulator every thing works fine], on iOS
device I have to use the os provided tmp directory which will be different
for every app.
I am looking into llvm::sys::path & Path.inc that defined P_tmpdir ,
"/var/tmp".
I am changing this according to my requirement as I can't use environment
variables.

Thanks
Ramakrishna M

On Thu, Mar 24, 2016 at 6:57 PM, James Molloy <james at jamesmolloy.co.uk>
wrote:

> Hi,
>
> LLVM will look for the following environment variables to be set, and if
> not it will use /var/tmp:
>
> TMPDIR, TMP, TEMP, TEMPDIR
>
> You should be able to override its behaviour by setting one of those.
>
> Cheers,
>
> James
>
> On Thu, 24 Mar 2016 at 11:21 Ramakrishna Mallireddy via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> What are the various option we have in setting tmp dir.
>>
>> I can't use the default var/tmp, and I am looking to pass the dir during
>> compiler invocation as an arg.
>>
>> any help is great.
>>
>> Thanks
>> Ramakrishna
>> _______________________________________________
>> 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/20160324/aa351ca9/attachment.html>


More information about the llvm-dev mailing list