diff options
| -rw-r--r-- | xmake/rules/platform/windows/manifest/xmake.lua | 7 |
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 |
