summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/utils/archive/extract.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua
index ff6d20e16..b5cb79033 100644
--- a/xmake/modules/utils/archive/extract.lua
+++ b/xmake/modules/utils/archive/extract.lua
@@ -132,6 +132,11 @@ function _extract_using_7z(archivefile, outputdir, extension, opt)
-- init argv
local argv = {"x", "-y", archivefile}
+ -- disable to store symlinks on windows
+ if is_host("windows") then
+ table.insert(argv, "-snl-")
+ end
+
-- ensure output directory
if not os.isdir(outputdir) then
os.mkdir(outputdir)