feat(nvim): enable debug builds in buildgo snippet
This commit is contained in:
parent
2bcf093e8c
commit
e50ec4828b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue