Skip to content

Commit

Permalink
darwin: work around a linker error for the mime/quotedprintable tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aykevl authored and deadprogram committed Aug 17, 2024
1 parent 8b626e6 commit b6c53a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/internal/abi/funcpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit b6c53a6

Please sign in to comment.