diff --git a/include/dxc/Support/HLSLOptions.td b/include/dxc/Support/HLSLOptions.td index 2c5ddd7e8..dd2bd2de1 100644 --- a/include/dxc/Support/HLSLOptions.td +++ b/include/dxc/Support/HLSLOptions.td @@ -355,7 +355,7 @@ def Qstrip_reflect : Flag<["-", "/"], "Qstrip_reflect">, Flags<[CoreOption, Driv HelpText<"Strip reflection data from shader bytecode (must be used with /Fo )">; def Qstrip_reflect_from_dxil : Flag<["-", "/"], "Qstrip_reflect_from_dxil">, Flags<[CoreOption]>, Group, HelpText<"Strip reflection data from shader bytecode (must be used with /Fo )">; -def Qstrip_debug : Flag<["-", "/"], "Qstrip_debug">, Flags<[CoreOption, DriverOption]>, Group, +def Qstrip_debug : Flag<["-", "/"], "Qstrip_debug">, Flags<[CoreOption, DriverOption, HelpHidden]>, Group, HelpText<"Strip debug information from 4_0+ shader bytecode (must be used with /Fo )">; def Qembed_debug : Flag<["-", "/"], "Qembed_debug">, Flags<[CoreOption]>, Group, HelpText<"Embed PDB in shader container (must be used with /Zi)">; diff --git a/tools/clang/tools/dxcompiler/dxcompilerobj.cpp b/tools/clang/tools/dxcompiler/dxcompilerobj.cpp index ef43ce3ac..5aace4300 100644 --- a/tools/clang/tools/dxcompiler/dxcompilerobj.cpp +++ b/tools/clang/tools/dxcompiler/dxcompilerobj.cpp @@ -729,7 +729,7 @@ public: // Implies name part SerializeFlags |= SerializeDxilFlags::IncludeDebugNamePart; } - if (opts.StripReflectionFromDxil) { + if (opts.StripReflection || opts.StripReflectionFromDxil) { SerializeFlags |= SerializeDxilFlags::StripReflectionFromDxilPart; } if (!opts.StripReflection) {