[clang] [llvm] [Driver][DirectX] Add `/Qembed_debug` and `/Fd` flags (PR #204166)

Ilia Kuklin via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 04:18:36 PDT 2026


================
@@ -9666,6 +9665,18 @@ def dxc_Zss : DXCFlag<"Zss">,
               HelpText<"Compute Shader Hash considering source information">;
 def dxc_Zsb : DXCFlag<"Zsb">,
               HelpText<"Compute Shader Hash considering only output binary">;
+def dxc_Fd
+    : DXCJoinedOrSeparate<"Fd">,
+      HelpText<"Write debug information to the given file, or automatically "
+               "named file in directory when ending in '/'">;
+def dxc_Qembed_debug
+    : DXCFlag<"Qembed_debug">,
+      HelpText<"Embed PDB in shader container (must be used with /Zi)">;
+def dxc_Zi : Option<["/", "-"], "Zi", KIND_FLAG>,
+             Group<dxc_Group>,
+             Alias<g_Flag>,
+             Visibility<[CLOption, DXCOption]>,
+             HelpText<"Enable debug information">;
----------------
kuilpd wrote:

> I think all we actually want to do with Zi is update the help text from "Like /Z7" to "Enable debug information", since that's meaningful and correct for both cl and dxc driver modes.

Done.

https://github.com/llvm/llvm-project/pull/204166


More information about the cfe-commits mailing list