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

solaris: make 'v test-compiler' pass (stage 2)

This commit is contained in:
Delyan Angelov
2020-03-21 10:48:02 +02:00
committed by GitHub
parent a5c0d89c71
commit ba088056ed
15 changed files with 236 additions and 9 deletions

View File

@ -7,6 +7,9 @@ fn nr_cpus_nix() int {
$if macos {
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
}
$if solaris {
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
}
return 1
}