summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Kiage <[email protected]>2023-07-14 00:12:58 +0300
committerCaleb Kiage <[email protected]>2023-07-14 00:12:58 +0300
commit3a9712b107411c445007fa1ef1230d92e97eeac3 (patch)
treeb49694695ea4b543b6b010f4afb9ee6404c48496
parentd09a4327e317bf30370fad134be4c11cd23fb51b (diff)
use tmpfile on msys
-rw-r--r--xmake/core/base/os.lua2
-rw-r--r--xmake/modules/utils/archive/extract.lua2
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