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

ci: fix bootstrapping on macos/freebsd etc

This commit is contained in:
Delyan Angelov
2023-02-21 12:28:08 +02:00
parent 82c4338b76
commit 612ac69486
4 changed files with 28 additions and 3 deletions

View File

@ -9,5 +9,8 @@ fn C.ptrace(u32, u32, voidptr, voidptr) u64
pub fn debugger_present() bool {
// check if the parent could trace its process,
// if not a debugger must be present
return C.ptrace(C.PTRACE_TRACEME, 0, 1, 0) == -1
$if linux {
return C.ptrace(C.PTRACE_TRACEME, 0, 1, 0) == -1
}
return false
}