You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jclc Could this be a problem with the vulkan project? I noticed they're initializing cgo values to nil, which isn't what the docs say:
vulkan source:
// NullHandle defines a platform-specfic NULL handle.NullHandleunsafe.Pointer=nil// NullSemaphore defines a platform-specfic NULL Semaphore.NullSemaphoreSemaphore=nil// NullFence defines a platform-specfic NULL Fence.NullFenceFence=nil
Because of this change, values of the affected types need to be zero-initialized with the constant 0 instead of the constant nil. Go 1.10 provides gofix modules to help with that rewrite:
go tool fix -r cftype <pkg>
go tool fix -r jni <pkg>
What version of Go are you using (
go version
)?go1.10.3 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN="/home/vhns/projects/go/bin"
GOCACHE="/home/vhns/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/vhns/projects/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build621405833=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Added a go:generate stringer pragma for an enum. The same package includes imports to vulkan-go.
What did you expect to see?
An output file named action_string.go.
What did you see instead?
The type
Semaphore
is a C type in this context. The package itself builds and works fine.The text was updated successfully, but these errors were encountered: