Skip to content

Commit b66b112

Browse files
committed
[windows] Set TMP and TEMP, as well as TMPDIR.
Seems that Windows uses TMP and TEMP (more details about why two in https://devblogs.microsoft.com/oldnewthing/20150417-00/?p=44213), but doesn't seem to use TMPDIR at all. The changes set all three to the same value. I am not removing TMPDIR just in case. It seems to avoid creating files in the other temporal directories for the compilation and testing. This temp directory should be clean up by the CI machines when recreating the new working directory for the next build. Let's hope we can stop having to babysit the CI servers every month.
1 parent fe5be63 commit b66b112

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build-windows.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ set install_directory=%build_root%\Library\Developer\Toolchains\unknown-Asserts-
5555

5656
md %build_root%\tmp
5757
set TMPDIR=%build_root%\tmp
58+
set TMP=%build_root%\tmp
59+
set TEMP=%build_root%\tmp
5860

5961
md %build_root%\tmp\org.llvm.clang.9999
6062
set CUSTOM_CLANG_MODULE_CACHE=%build_root%\tmp\org.llvm.clang.9999

0 commit comments

Comments
 (0)