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

v: add support for iOS crosscompilation (#5943)

This commit is contained in:
pancake
2020-07-23 06:58:44 +02:00
committed by GitHub
parent 0f98445f7f
commit 36352085ae
8 changed files with 46 additions and 8 deletions

View File

@ -453,9 +453,22 @@ pub fn system(cmd string) int {
ret = C._wsystem(wcmd.to_wide())
}
} $else {
unsafe {
ret = C.system(charptr(cmd.str))
/*
// make
// make selfcompile
// ./v -os ios hello.v
$if ios {
// TODO: use dlsym, use posix_spawn or embed ios_system
eprintln('system not supported on ios')
ret = 1
} $else {
*/
unsafe {
ret = C.system(charptr(cmd.str))
}
/*
}
*/
}
if ret == -1 {
print_c_errno()