ClangImporter /var/temp dir settings..


(Ramakrishna Mallireddy) #1

How to change the temp dir path: /var/tmp/, can I input my desired path as
a command argument during swift compiler invocation.

Thanks
Ramakrishna M


(Jordan Rose) #2

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.

Best,
Jordan

···

On Mar 24, 2016, at 4:34 , Ramakrishna Mallireddy via swift-users <swift-users@swift.org> wrote:

How to change the temp dir path: /var/tmp/, can I input my desired path as a command argument during swift compiler invocation.

Thanks
Ramakrishna M
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Ramakrishna Mallireddy) #3

Thanks Jordan, I am running swift+llvm on iOS and I can't set TMPDIR and
have changed "*getDefaultTempDir*" according to my needs.

Thanks
Ramakrishna

···

On Thu, Mar 31, 2016 at 2:27 AM, Jordan Rose <jordan_rose@apple.com> wrote:

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.

Best,
Jordan

> On Mar 24, 2016, at 4:34 , Ramakrishna Mallireddy via swift-users < > swift-users@swift.org> wrote:
>
> How to change the temp dir path: /var/tmp/, can I input my desired path
as a command argument during swift compiler invocation.
>
> Thanks
> Ramakrishna M
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users