diff options
| -rw-r--r-- | xmake/core/package/package.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 56191054c..cf5e8068c 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -784,7 +784,7 @@ function _instance:cachedir() local name = self:displayname():lower():gsub("::", "_"):gsub("#", "_") local version_str = self:version_str() -- strip invalid characters on windows, e.g. `>= <=` - if is_host("windows") then + if os.is_host("windows") then version_str = version_str:gsub("[>=<]", "") end if self:is_local() then @@ -813,7 +813,7 @@ function _instance:installdir(...) local version_str = self:version_str() if version_str then -- strip invalid characters on windows, e.g. `>= <=` - if is_host("windows") then + if os.is_host("windows") then version_str = version_str:gsub("[>=<]", "") end installdir = path.join(installdir, version_str) |
