summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vsutils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vsutils.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vsutils.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vsutils.lua b/xmake/plugins/project/vstudio/impl/vsutils.lua
index 9abf7a7b9..af184b536 100644
--- a/xmake/plugins/project/vstudio/impl/vsutils.lua
+++ b/xmake/plugins/project/vstudio/impl/vsutils.lua
@@ -52,3 +52,7 @@ function vsarch(arch)
return arch
end
+-- translate file path (with namespace characters '::', it's invalid path characters on windows)
+function translate_path(filepath)
+ return (filepath:gsub("::", "_"))
+end