diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md index 12923c24f76..1c7645f75f1 100644 --- a/docs/command-line-slangc-reference.md +++ b/docs/command-line-slangc-reference.md @@ -529,6 +529,11 @@ Allow generating code from incomplete libraries with unresolved external functio Specify the space index for the system defined global bindless resource array. + +### -separate-debug-info +Emit debug data to a separate file, and strip it from the main output file. + + ## Downstream @@ -650,11 +655,6 @@ Verify IR in the front-end. Disassemble and print the module IR. - -### -separate-debug-info -Emit debug data to a separate file, and strip it from the main output file. - - ## Repro diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 68f53850841..28953b4ede2 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -683,7 +683,11 @@ void initCommandOptions(CommandOptions& options) {OptionKind::BindlessSpaceIndex, "-bindless-space-index", "-bindless-space-index ", - "Specify the space index for the system defined global bindless resource array."}}; + "Specify the space index for the system defined global bindless resource array."}, + {OptionKind::EmitSeparateDebug, + "-separate-debug-info", + nullptr, + "Emit debug data to a separate file, and strip it from the main output file."}}; _addOptions(makeConstArrayView(targetOpts), options); @@ -820,11 +824,7 @@ void initCommandOptions(CommandOptions& options) "-verify-debug-serial-ir", nullptr, "Verify IR in the front-end."}, - {OptionKind::DumpModule, "-dump-module", nullptr, "Disassemble and print the module IR."}, - {OptionKind::EmitSeparateDebug, - "-separate-debug-info", - nullptr, - "Emit debug data to a separate file, and strip it from the main output file."}}; + {OptionKind::DumpModule, "-dump-module", nullptr, "Disassemble and print the module IR."}}; _addOptions(makeConstArrayView(debuggingOpts), options); /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Experimental !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */