cmd/cgo: CFLAGS not passed in godefs mode #41072
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Master, 1.15, 1.14.7 and 1.13.13
What operating system and processor architecture are you using (
go env
)?Found on aix/ppc64, but same on linux/amd64
What did you do?
The
#cgo CFLAGS
directive is ignored when using-godefs
mode.The following example shows it with a define. Of course,
#cgo CFLAGS: -D_D1
can be replaced by#define _D1
and it will work. But that's not possible, AFAIK, for gcc flags like "-fms-extensions" which I need to pass for another code.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: