summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 5fefd9ab5..03c51006b 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -364,7 +364,7 @@ function os.match(pattern, mode, callback)
if startpos then
rootdir = rootdir:sub(1, startpos - 1)
end
- rootdir = path.translate(rootdir)
+ rootdir = path.directory(rootdir .. "_")
-- compute the recursion level
--