summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-01-24 23:57:20 +0800
committerGitHub <[email protected]>2022-01-24 23:57:20 +0800
commitdb60a26fa1334c1175c8a2a549a67b827a01978a (patch)
tree4d12ab60394bdb2790237dfbf455f4866e0f073d
parentdee5ebd8220b3695a0ebf43d88fee06d910766ee (diff)
parentf6616f144879ccb3e41550760ca9fb6d8f58b600 (diff)
Merge pull request #2009 from Guyutongxue/fix-windows-manifest
Fix windows .manifest
-rw-r--r--xmake/rules/platform/windows/manifest/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/platform/windows/manifest/xmake.lua b/xmake/rules/platform/windows/manifest/xmake.lua
index b476faeed..fbcfe36d4 100644
--- a/xmake/rules/platform/windows/manifest/xmake.lua
+++ b/xmake/rules/platform/windows/manifest/xmake.lua
@@ -28,13 +28,13 @@ rule("platform.windows.manifest")
for _, sourcebatch in pairs(target:sourcebatches()) do
if sourcebatch.rulename == "platform.windows.manifest" then
for _, sourcefile in ipairs(sourcebatch.sourcefiles) do
- target:add("ldflags", "/ManifestFile:" .. path.translate(sourcefile), {force = true})
+ target:add("ldflags", "/ManifestInput:" .. path.translate(sourcefile), {force = true})
manifest = true
end
end
end
if manifest then
- target:add("ldflags", "/manifest", {force = true})
+ target:add("ldflags", "/manifest:embed", {force = true})
end
end
end)