hermetic_cc_toolchain icon indicating copy to clipboard operation
hermetic_cc_toolchain copied to clipboard

Append username to the default tmp directory

Open laurentlb opened this issue 8 months ago • 3 comments

When two people build code on the same machine, there can be a collision. The second person may not be able to write to zig-cache if it was created by someone else. When it happens, the error message is quite confusing (see _compile_failed variable).

With this commit, each user should get a different directory by default. It's still possible to change the default using HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX.

laurentlb avatar Jun 24 '24 15:06 laurentlb