<div dir="ltr">Thanks Jordan, I am running swift+llvm on iOS and I can't set TMPDIR and have changed "<b>getDefaultTempDir</b>" according to my needs.<div><br></div><div>Thanks</div><div>Ramakrishna <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 2:27 AM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Ramakrishna. IIRC, there's no command-line argument for this, but both Clang and Swift should be looking at the standard environment variable TMPDIR. As long as that's set early enough in compilation, it should work for your purposes.<br>
<br>
Best,<br>
Jordan<br>
<div><div class="h5"><br>
<br>
> On Mar 24, 2016, at 4:34 , Ramakrishna Mallireddy via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br>
><br>
> How to change the temp dir path: /var/tmp/, can I input my desired path as a command argument during swift compiler invocation.<br>
><br>
> Thanks<br>
> Ramakrishna M<br>
</div></div>> _______________________________________________<br>
> swift-users mailing list<br>
> <a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
> <a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
<br>
</blockquote></div><br></div>