summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-05 22:38:41 +0800
committerruki <[email protected]>2022-11-05 22:38:41 +0800
commita85446ea72cf86fe66a511fc4f8a502a5ce7d75d (patch)
tree5c806cfca415137f9c9a5d8e5585a0dd8a1f3737 /xmake/core
parentdd4684deff6e6208db83b41980f6cb4b04ea4d0b (diff)
improve comments
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/project/target.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 8e9e62ff4..729f137b4 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -1143,6 +1143,7 @@ function _instance:autogenfile(sourcefile, opt)
if path.is_absolute(relativedir) and os.host() == "windows" then
-- remove C:\\ and whitespaces
-- e.g. C:\\Program Files (x64)\\xxx\Windows.h
+ -- @see https://github.com/xmake-io/xmake/issues/3021
relativedir = hash.uuid4(relativedir):gsub("%-", ""):lower()
end
relativedir = relativedir:gsub("%.%.", "__")