fix: add darwin build constraints to Objective-C source files
All checks were successful
check / check (push) Successful in 22s

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.
This commit is contained in:
clawbot
2026-03-14 17:54:37 -07:00
parent 386baaea70
commit 044ad92feb
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
//go:build darwin
#import <Foundation/Foundation.h>
#import <Security/Security.h>
#include "secure_enclave.h"