diff --git a/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets b/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets index 84cf738..c02eeb2 100644 --- a/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets +++ b/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets @@ -113,13 +113,15 @@ snippet buildgo "Build (Go)" i export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" + export GOPATH="${srcdir}" go build -v \ - -trimpath \ -buildmode=pie \ -mod=readonly \ -modcacherw \ - -ldflags "-linkmode external -extldflags ${LDFLAGS}" \ + -ldflags "-compressdwarf=false \ + -linkmode external \ + -extldflags ${LDFLAGS}" \ -o build \ . endsnippet