From 7e5b59c9fb29f587546dfe691385f397024937ec Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 7 Nov 2023 23:38:54 +0800 Subject: ignore comment --- xmake/rules/platform/windows/manifest/xmake.lua | 7 +++++-- 1 file 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 -- cgit v1.3.1