diff options
author | Moritz Poldrack <git@moritz.sh> | 2023-10-11 07:32:54 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-10-11 10:21:56 +0200 |
commit | c8469d30947a461f536be8f70e0f2ce9f44481a3 (patch) | |
tree | d06baaf67ea98a122c9b70f76ed1a545549e9958 | |
parent | 1300b2c81bf96ca143ded90a7f6af130006a516b (diff) | |
download | aerc-c8469d30947a461f536be8f70e0f2ce9f44481a3.tar.gz |
mk: remove trimpath flag from debug build
When inspecting core dumps, it is usually advantageous to get the
context of the code. If -trimpath is passed, delve can not find the
file associated with a certain PC, and only prints:
Command failed: open git.sr.ht/~rjarry/aerc/app/aerc.go: no such file or directory
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 95556bcf..e9ad9073 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -75,7 +75,7 @@ debug: aerc.debug @echo ' dlv attach $$(pidof aerc.debug)' aerc.debug: $(gosrc) - $(GO) build $(GOFLAGS) -gcflags=*=-N -gcflags=*=-l -ldflags="$(GO_LDFLAGS)" -o aerc.debug + $(GO) build $(subst -trimpath,,$(GOFLAGS)) -gcflags=*=-N -gcflags=*=-l -ldflags="$(GO_LDFLAGS)" -o aerc.debug .PHONY: doc doc: $(docs) |