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

ci: re-enable testing of ./v -freestanding run vlib/os/bare/bare_example_linux.v on ubuntu

This commit is contained in:
Delyan Angelov 2021-04-22 12:50:38 +03:00
parent 9181eb1db8
commit 59e23dbb57
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 4 additions and 3 deletions

View File

@ -358,8 +358,8 @@ jobs:
# run: git clone --depth 1 https://github.com/vlang/vorum && cd vorum && ../v . && cd .. # run: git clone --depth 1 https://github.com/vlang/vorum && cd vorum && ../v . && cd ..
# - name: Build vpm # - name: Build vpm
# run: git clone --depth 1 https://github.com/vlang/vpm && cd vpm && ../v . && cd .. # run: git clone --depth 1 https://github.com/vlang/vpm && cd vpm && ../v . && cd ..
# - name: Freestanding - name: Freestanding
# run: ./v -freestanding -o bare vlib/os/bare/bare_example_linux.v run: ./v -freestanding run vlib/os/bare/bare_example_linux.v
- name: v self compilation - name: v self compilation
run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v
- name: -usecache - name: -usecache

View File

@ -236,7 +236,7 @@ fn sys_read(fd i64, buf &byte, count u64) (i64, Errno) {
} }
// 1 sys_write // 1 sys_write
fn sys_write(fd i64, buf &byte, count u64) (i64, Errno) { pub fn sys_write(fd i64, buf &byte, count u64) (i64, Errno) {
return split_int_errno(sys_call3(1, u64(fd), u64(buf), count)) return split_int_errno(sys_call3(1, u64(fd), u64(buf), count))
} }

View File

@ -4,4 +4,5 @@ fn main() {
sys_write(1, s.str, u64(s.len)) sys_write(1, s.str, u64(s.len))
a := s[0] a := s[0]
println('Hello freestanding!') println('Hello freestanding!')
println(a)
} }