cmd/cgo: avoid absolute paths in generated C header #24945
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I use
go build -buildmode=c-archive
to generate a.h
and a.a
file. It would be great for various reasons (vcs, hashes for build systems) if the generated header did not include absolute paths. Right now I see a comment on the top and a line directive.This isn't super important, but it would be more convenient if the output didn't depend this much on the environment.
The text was updated successfully, but these errors were encountered: