summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-07 23:38:54 +0800
committerruki <[email protected]>2023-11-07 23:38:54 +0800
commit7e5b59c9fb29f587546dfe691385f397024937ec (patch)
treeb780beb4f9c491d1167203be7951903ce5539a19
parent8eb314a2a511ab589828a0d29cb06de4703654c8 (diff)
ignore comment
-rw-r--r--xmake/rules/platform/windows/manifest/xmake.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/rules/platform/windows/manifest/xmake.lua b/xmake/rules/platform/windows/manifest/xmake.lua
index 40c99fc67..8019930cd 100644
--- a/xmake/rules/platform/windows/manifest/xmake.lua
+++ b/xmake/rules/platform/windows/manifest/xmake.lua
@@ -35,8 +35,11 @@ rule("platform.windows.manifest")
target:add("ldflags", "/manifestinput:" .. path.translate(sourcefile), {force = true})
manifest = true
local content = io.readfile(sourcefile)
- if content and content:find("requestedPrivileges", 1, true) then
- uac = true
+ if content then
+ content = content:gsub("<!%-%-.-%-%->", "")
+ if content:find("requestedPrivileges", 1, true) then
+ uac = true
+ end
end
break
end