From 8b26dc1d62c8ec258707527953bd0d2195684adf Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 5 Mar 2023 23:51:52 +0100 Subject: mk: speed up notmuch detection Use gcc instead of go to build a basic program and determine if notmuch is available. Building a minimal go program takes more than 300ms on a fast machine. A minimal C counterpart takes less than 100ms. To avoid lag when doing bash completion, avoid running any shell commands directly during make evaluation. Rename check-notmuch.sh to goflags.sh and make that script print the goflags directly. Signed-off-by: Robin Jarry Tested-by: Inwit --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2383a1fb..32ac5a4e 100644 --- a/README.md +++ b/README.md @@ -77,12 +77,12 @@ Then compile aerc: aerc optionally supports notmuch. To enable it, you need to have a recent version of [notmuch](https://notmuchmail.org/#index7h2), including the header -files (notmuch.h). The `notmuch` build tag should be automatically added. +files (notmuch.h). The `notmuch` build tag should be automatically added. To +check if it is, run the following command: - $ make - go build -trimpath -tags=notmuch -ldflags "-X ... - ^^^^^^^^^^^^^ - ... + $ ./aerc -v + aerc 0.14.0-108-g31e1cd9af565 +notmuch (go1.19.6 amd64 linux) + ^^^^^^^^ If it is not, you can force it before building: -- cgit