fix: rethrow in baremental

This commit is contained in:
Haolan
2025-09-05 16:41:58 +08:00
parent 0c418073b3
commit 0d02a7273e

View File

@@ -2,5 +2,12 @@
package runtime
import c "github.com/goplus/llgo/runtime/internal/clite"
// Rethrow rethrows a panic.
func Rethrow(link *Defer) {}
func Rethrow(link *Defer) {
// in baremental environment, we cannot get debug data from pthread_getspecific
// most of baremental implement of pthread_getspecific returns empty result
c.Printf(c.Str("fatal error\n"))
c.Exit(2)
}