summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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