darwin: work around a linker error for the mime/quotedprintable tests

This is needed for Go 1.23 support.

These functions should ideally get implemented. Until that's done, just
panic here. Apparently panicking in internal/abi.FuncPCABI0 is enough to
fix all linker errors for mime/quotedprintable.
This commit is contained in:
Ayke van Laethem
2024-08-16 21:46:55 +02:00
committed by Ron Evans
parent 8b626e6ea7
commit b6c53a6f0e
+6 -2
View File
@@ -5,6 +5,10 @@ package abi
// implementation, in part because TinyGo doesn't use ABI0 or ABIInternal (it
// uses a C-like calling convention).
func FuncPCABI0(f interface{}) uintptr
func FuncPCABI0(f interface{}) uintptr {
panic("unimplemented: internal/abi.FuncPCABI0")
}
func FuncPCABIInternal(f interface{}) uintptr
func FuncPCABIInternal(f interface{}) uintptr {
panic("unimplemented: internal/abi.FuncPCABIInternal")
}