Skip to content

Unrecognised COFF object format when using cl.exe /GL #194

@jayvdb

Description

@jayvdb

A bit of the history at gimli-rs/object#154 and motivation at indygreg/PyOxidizer#183

The default Python extension C flags on Windows with cl.exe includes /GL (Whole Program Optimization). The docs say

.obj files produced with /GL will not be available to such linker utilities as EDITBIN and DUMPBIN.

When that is used, the .obj format is very strange. Omit the option, and the usual .obj format is used and goblin and object process it wonderfully.

As I can hack the code involved, omitting that flag is possible, so this doesnt block us, but it would be nice to have the optimisations, and have one less hack. Anyways, I can proceed, so thanks very much for a workable library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions