Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/command-line-slangc-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


<a id="separate-debug-info"></a>
### -separate-debug-info
Emit debug data to a separate file, and strip it from the main output file.



<a id="Downstream"></a>
## Downstream
Expand Down Expand Up @@ -650,11 +655,6 @@ Verify IR in the front-end.
Disassemble and print the module IR.


<a id="separate-debug-info"></a>
### -separate-debug-info
Emit debug data to a separate file, and strip it from the main output file.



<a id="Repro"></a>
## Repro
Expand Down
12 changes: 6 additions & 6 deletions source/slang/slang-options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,11 @@ void initCommandOptions(CommandOptions& options)
{OptionKind::BindlessSpaceIndex,
"-bindless-space-index",
"-bindless-space-index <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);

Expand Down Expand Up @@ -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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
Expand Down
Loading