Skip to content

Commit

Permalink
[Symbol] Increase DebugInformationLevel for manifest entries (dotnet#…
Browse files Browse the repository at this point in the history
…4732)

Bumping the DebugInformationLevel to be preferred over the default
  • Loading branch information
mdh1418 authored Sep 10, 2024
1 parent 796ea1f commit a5c4167
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.SymbolManifestGenerator;

public static class SymbolManifestGenerator
{
private const int Private = 340;
private const int TargetDebugLevel = 0x154 | 0x1 | 0x500; // Private | Binary | SourceIndexed

public static bool GenerateManifest(ITracer tracer, DirectoryInfo dir, string manifestFileName, bool specialFilesRequireAdjacentRuntime = true)
{
Expand Down Expand Up @@ -63,8 +63,7 @@ public static bool GenerateManifest(ITracer tracer, DirectoryInfo dir, string ma
BasedirRelativePath = basedirRelativePath,
SymbolKey = runtimeCorrelatedKey.Index,
Sha512 = fileHash,
DebugInformationLevel = Private,
LegacyDebugInformationLevel = Private
DebugInformationLevel = TargetDebugLevel
};

manifestData.Entries.Add(manifestDataEntry);
Expand Down Expand Up @@ -143,7 +142,5 @@ private class ManifestDataEntry
public string SymbolKey { get; set; }
public string Sha512 { get; set; }
public int DebugInformationLevel { get; set; }
[JsonPropertyName("DebugInformationLevel")]
public int LegacyDebugInformationLevel { get; set; }
}
}

0 comments on commit a5c4167

Please sign in to comment.