From 044ad92febe793c4dc633080c42e18a8742b80a1 Mon Sep 17 00:00:00 2001 From: clawbot Date: Sat, 14 Mar 2026 17:54:37 -0700 Subject: [PATCH] fix: add darwin build constraints to Objective-C source files Add //go:build darwin to secure_enclave.m and secure_enclave.h so Go ignores them on non-darwin platforms. Without this, the lint stage fails on Linux with 'Objective-C source files not allowed when not using cgo or SWIG' because the !darwin stub (macse_stub.go) doesn't use CGO. --- internal/macse/secure_enclave.h | 2 ++ internal/macse/secure_enclave.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/internal/macse/secure_enclave.h b/internal/macse/secure_enclave.h index 7fc588b..a828101 100644 --- a/internal/macse/secure_enclave.h +++ b/internal/macse/secure_enclave.h @@ -1,3 +1,5 @@ +//go:build darwin + #ifndef SECURE_ENCLAVE_H #define SECURE_ENCLAVE_H diff --git a/internal/macse/secure_enclave.m b/internal/macse/secure_enclave.m index 9cbfd2a..180754c 100644 --- a/internal/macse/secure_enclave.m +++ b/internal/macse/secure_enclave.m @@ -1,3 +1,5 @@ +//go:build darwin + #import #import #include "secure_enclave.h"