From 0504e8430a4d76ccda856087489d25085a863387 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 10 Jun 2025 00:51:25 +0800 Subject: translate file path for vsxmake --- xmake/plugins/project/vstudio/impl/vsutils.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/plugins/project/vstudio/impl/vsutils.lua') 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 -- cgit v1.3.1