Skip to content

Remove Platform entry from PDB compilation options #51941

@RikkiGibson

Description

@RikkiGibson

Platform can't be determined from the CLR/PE header flags of the dll? Seems like it should be possible.

Originally posted by @tmat in #51778 (comment)

@RikkiGibson RikkiGibson 6 days ago Author Member
It may be possible, but I wasn't able to get all the values to round trip. The CoffHeader.Machine, for example, is not enough information. There must be other bits that imply Platform.AnyCpu and Platform.AnyCpu32BitPreferred that I just wasn't able to find.

@tmat tmat 6 days ago Member
These are stored in CorHeader flags:
https://source.dot.net/#System.Reflection.Metadata/System/Reflection/PortableExecutable/CorHeader.cs,1f6cfc9c2185aaf4,references

Metadata

Metadata

Assignees

Labels

Area-CompilersBugFeature - RebuildCompiler ability to verify provenance of code via rebuild operations

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions