From 3a9712b107411c445007fa1ef1230d92e97eeac3 Mon Sep 17 00:00:00 2001 From: Caleb Kiage <747955+calebkiage@users.noreply.github.com> Date: Fri, 14 Jul 2023 00:12:58 +0300 Subject: use tmpfile on msys --- xmake/core/base/os.lua | 2 +- xmake/modules/utils/archive/extract.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 4327d9333..a8659d4f2 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -1024,7 +1024,7 @@ function os.nuldev(input) end return xmake._NULDEV_INPUT else - if os.host() == "windows" and not os.is_subhost("msys", "cygwin") then + if os.host() == "windows" then -- @note cannot cache this file path to avoid multi-processes writing to the same file at the same time return os.tmpfile() else diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index b32734836..620c84d69 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -70,7 +70,7 @@ function _extract_using_tar(archivefile, outputdir, extension, opt) end -- set outputdir - if not is_host("windows") or os.is_subhost("msys", "cygwin") then + if not is_host("windows") then table.insert(argv, "-C") table.insert(argv, outputdir) end -- cgit v1.3.1