[PATCH] D136418: [WindowsKernel]add Release build options

Qfrost via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 22:35:49 PDT 2022


Qfrost911 created this revision.
Qfrost911 added reviewers: rnkovacs, shafik.
Herald added a project: All.
Qfrost911 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Using "Release" options to build Windows NT Kernel Driver, the error will be raised.

  lld-link : error : could not open '/RELEASE': no such file or directory

This patch add release options in Options.td to solve this problem.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136418

Files:
  lld/COFF/Options.td


Index: lld/COFF/Options.td
===================================================================
--- lld/COFF/Options.td
+++ lld/COFF/Options.td
@@ -132,6 +132,7 @@
     HelpText<"Use module-definition file">;
 
 def debug : F<"debug">, HelpText<"Embed a symbol table in the image">;
+def release : F<"release">, HelpText<"Link without symbol table in the image">;
 def debug_opt : P<"debug", "Embed a symbol table in the image with option">;
 def debugtype : P<"debugtype", "Debug Info Options">;
 def dll : F<"dll">, HelpText<"Create a DLL">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136418.469468.patch
Type: text/x-patch
Size: 543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221021/6c8fb7da/attachment.bin>


More information about the llvm-commits mailing list