feat(nvim): enable debug builds in buildgo snippet

This commit is contained in:
George Rawlinson 2023-02-07 20:53:47 +13:00
parent 2bcf093e8c
commit e50ec4828b
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -113,13 +113,15 @@ snippet buildgo "Build (Go)" i
export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}" export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}"
export GOPATH="${srcdir}"
go build -v \ go build -v \
-trimpath \
-buildmode=pie \ -buildmode=pie \
-mod=readonly \ -mod=readonly \
-modcacherw \ -modcacherw \
-ldflags "-linkmode external -extldflags ${LDFLAGS}" \ -ldflags "-compressdwarf=false \
-linkmode external \
-extldflags ${LDFLAGS}" \
-o build \ -o build \
. .
endsnippet endsnippet