From ce95cb1e67123ef8ef30736a302e5f4138ca9772 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 13 Nov 2020 22:42:33 +0800 Subject: fix os.ln --- core/src/tbox/tbox | 2 +- xmake/core/base/os.lua | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox index f4970bcd0..d27f28071 160000 --- a/core/src/tbox/tbox +++ b/core/src/tbox/tbox @@ -1 +1 @@ -Subproject commit f4970bcd0fcc05b09742452a4b3b3d2d1055569d +Subproject commit d27f2807173dbc787582b6169e8e854a0ef396fc diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 4b57e02f5..6923aaa0c 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -434,9 +434,6 @@ end -- link file or directory to the new symfile function os.ln(srcpath, dstpath) - if os.host() == "windows" then - return false, string.format("symlink is not supported!") - end if not os.link(srcpath, dstpath) then return false, string.format("cannot link %s to %s, %s", srcpath, dstpath, os.strerror()) end -- cgit v1.3.1