Skip to content

make _cgo_export.h available to Cgo C files #2669

Open
@eliasnaur

Description

@eliasnaur

TinyGo supports calling a Go function from C in the usual Cgo way of //export'ing the Go function and adding a C extern declaration matching the Go function signature. To minimize risk of function and declaration mismatch, the Go standard implementation generates a _cgo_export.h header file containing all extern declarations for exported Go functions.

However, TinyGo doesn't seem to offer _cgo_export.h, which adds friction to using otherwise portable Cgo packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cgoCGo and libc related issuesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions