-
before_link(function (target)
print("link %s", target:name())
target:add("ldflags", "/NODEFAULTLIB")
end) 命令行中没有 /NODEFAULTLIB 的选项: "bin\\HostX64\\x64\\link.exe" -dll -nologo -machine:x64 -out:build\windows\x64\release\ntdll.dll build\.objs\ntdll\windows\x64\release\dll\ntdll\csr\api.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\csr\capture.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\csr\connect.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\dbg\dbgui.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\etw\trace.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\ldr\ldrapi.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\ldr\ldrinit.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\ldr\ldrpe.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\ldr\ldrutils.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\ldr\verifier.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\rtl\libsupp.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\rtl\uilist.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\rtl\version.c.obj build\.objs\ntdll\windows\x64\release\dll\ntdll\dispatch\dispatch.c.obj |
Beta Was this translation helpful? Give feedback.
Answered by
yechao666
Jan 17, 2024
Replies: 1 comment
-
target:add("ldflags", "-nodefaultlib", {force = true})
target:add("shflags", "-nodefaultlib", {force = true}) 改成这样就解决了 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yechao666
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
改成这样就解决了