summaryrefslogtreecommitdiff
path: root/xmake/core/base/path.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-08-14 22:41:08 +0800
committerruki <[email protected]>2018-08-14 10:06:49 +0800
commit6b471f65f4536d07150b89504bf52753461064a5 (patch)
tree51b7264dac2baa7d5b6559cea50badaeac3fb1bc /xmake/core/base/path.lua
parente5011cbbe2717c0fd07c4da2394f6ced07a3f6cc (diff)
detect case-sensitive filesystem
Diffstat (limited to 'xmake/core/base/path.lua')
-rw-r--r--xmake/core/base/path.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua
index 19189ee90..61fd2acda 100644
--- a/xmake/core/base/path.lua
+++ b/xmake/core/base/path.lua
@@ -119,8 +119,8 @@ function path.pattern(pattern)
pattern = pattern:gsub("\001", ".*")
pattern = pattern:gsub("\002", "[^/]*")
- -- case-insensitive for windows path
- if os.host() == "windows" then
+ -- case-insensitive filesystem?
+ if not os.fscase() then
pattern = string.ipattern(pattern, true)
end
return pattern