summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-24 21:03:19 +0800
committerGitHub <[email protected]>2022-10-24 21:03:19 +0800
commit9be8275ef7fd57a0350c40c523884a25f79f9bc1 (patch)
tree9c6043b0eb6dc9dba5544289b887b2392a33e2e4
parent341cdf2f63c00b65568bb0f653f92d82161100b5 (diff)
parent9ad8f956cb82cce3524315ce8f135f4a275b0b26 (diff)
Merge pull request #2970 from xmake-io/module
fix module partitions #2954
-rw-r--r--xmake/rules/c++/modules/modules_support/common.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua
index ef3b8c9c0..b77411155 100644
--- a/xmake/rules/c++/modules/modules_support/common.lua
+++ b/xmake/rules/c++/modules/modules_support/common.lua
@@ -224,7 +224,9 @@ function parse_dependency_data(target, moduleinfos)
else
-- assume path with name
local name = provide["logical-name"] .. bmi_extension(target)
- name:replace(":", "-")
+ -- partition ":" character is invalid path character on windows
+ -- @see https://github.com/xmake-io/xmake/issues/2954
+ name = name:replace(":", "-")
m.provides[provide["logical-name"]] = {
bmi = path.join(cachedir, name),
sourcefile = moduleinfo.sourcefile