Skip to content

Commit

Permalink
/debug-type:none
Browse files Browse the repository at this point in the history
<DebugType>none</DebugType> property handled
eq to /debug-
ref: #1128
  • Loading branch information
jakubmisek committed Dec 1, 2024
1 parent 1c77b3a commit 3515600
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ internal override CommandLineArguments CommonParse(IEnumerable<string> args, str
// unused, parsed for backward compat only
if (!string.IsNullOrEmpty(value))
{
switch (value.ToLower())
switch (value.ToLowerInvariant())
{
case "full":
case "pdbonly":
Expand All @@ -284,6 +284,11 @@ internal override CommandLineArguments CommonParse(IEnumerable<string> args, str
case "embedded":
debugInformationFormat = DebugInformationFormat.Embedded;
break;
case "none": // == /debug-
debugInformationFormat = DebugInformationFormat.PortablePdb;
emitPdb = false;
debugPlus = false;
break;
default:
//AddDiagnostic(diagnostics, ErrorCode.ERR_BadDebugType, value);
break;
Expand Down

0 comments on commit 3515600

Please sign in to comment.