1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

CI: ubuntu-musl target

This commit is contained in:
Alexander Medvednikov
2019-11-15 00:46:40 +03:00
parent 9499275180
commit a04c3bac83
4 changed files with 26 additions and 2 deletions

View File

@ -24,9 +24,11 @@ fn print_backtrace_skipping_top_frames_nix(xskipframes int) bool {
// the functions below are not called outside this file,
// so there is no need to have their twins in builtin_windows.v
fn print_backtrace_skipping_top_frames_mac(skipframes int) bool {
$if mac {
buffer := [100]byteptr
nr_ptrs := C.backtrace(*voidptr(buffer), 100)
C.backtrace_symbols_fd(*voidptr(&buffer[skipframes]), nr_ptrs-skipframes, 1)
}
return true
}