From e50ec4828b19376db0c544e985ede4adf97631e9 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 7 Feb 2023 20:53:47 +1300 Subject: [PATCH] feat(nvim): enable debug builds in buildgo snippet --- nvim/.config/nvim/UltiSnips/PKGBUILD.snippets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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