From 938437bfc9c38847d610e6758ab1367e1a6d588a Mon Sep 17 00:00:00 2001 From: Aditya Kalro Date: Sat, 14 Mar 2026 05:58:28 -0700 Subject: [PATCH] Fix WhatsappNative build tag (#1567) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 411cd9dc5..521f6d774 100644 --- a/Makefile +++ b/Makefile @@ -126,9 +126,11 @@ build-launcher: @echo "Build complete: $(BUILD_DIR)/picoclaw-launcher" ## build-whatsapp-native: Build with WhatsApp native (whatsmeow) support; larger binary +## Only platforms where modernc.org/sqlite (libc) works: linux amd64/arm/arm64, darwin, windows amd64. +## loong64/riscv64/mipsle are excluded (build constraints exclude all Go files in libc). build-whatsapp-native: generate ## @echo "Building $(BINARY_NAME) with WhatsApp native for $(PLATFORM)/$(ARCH)..." - @echo "Building for multiple platforms..." + @echo "Building for multiple platforms (whatsapp_native: sqlite-supported only)..." @mkdir -p $(BUILD_DIR) GOOS=linux GOARCH=amd64 $(GO) build -tags whatsapp_native -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY_NAME)-linux-amd64 ./$(CMD_DIR) GOOS=linux GOARCH=arm GOARM=7 $(GO) build -tags whatsapp_native -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY_NAME)-linux-arm ./$(CMD_DIR)