ci: fix failing Freestanding task

This commit is contained in:
Delyan Angelov 2021-06-23 13:18:17 +03:00
parent 6333adad23
commit 9151f085f5
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -135,6 +135,11 @@ fn bare_eprint(buf &byte, len u64) {
sys_write(2, buf, len)
}
pub fn write(fd i64, buf &byte, count u64) i64 {
x, _ := sys_write(fd, buf, count)
return x
}
fn bare_panic(msg string) {
println('V panic' + msg)
exit(1)