summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjarcherNV <jarcher@nvidia.com>2025-06-26 20:06:37 -0700
committerGitHub <noreply@github.com>2025-06-27 03:06:37 +0000
commitc5295eae268f78c306c9401719bb4e06ba63ba16 (patch)
treeaa24bb581d9bd0f70006030c9c960dcf3adf2dfd
parentb10319c1c513de8dd7a1d7cf5a45265589978654 (diff)
Move separate-debug-info arg to target options (#7540)
* Move separate-debug-info arg to target options The separate-debug-info command line option is listed under debugging options, move this to the target options section which includes other similar flags like -g and -emit-spirv-directly. * regenerate command line reference --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
-rw-r--r--docs/command-line-slangc-reference.md10
-rw-r--r--source/slang/slang-options.cpp12
2 files changed, 11 insertions, 11 deletions
diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md
index 12923c24f..1c7645f75 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.
+<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
@@ -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
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index 68f538508..28953b4ed 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 <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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */