Skip to content

Commit 59e23db

Browse files
committed
ci: re-enable testing of ./v -freestanding run vlib/os/bare/bare_example_linux.v on ubuntu
1 parent 9181eb1 commit 59e23db

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ jobs:
358358
# run: git clone --depth 1 https://github.com/vlang/vorum && cd vorum && ../v . && cd ..
359359
# - name: Build vpm
360360
# run: git clone --depth 1 https://github.com/vlang/vpm && cd vpm && ../v . && cd ..
361-
# - name: Freestanding
362-
# run: ./v -freestanding -o bare vlib/os/bare/bare_example_linux.v
361+
- name: Freestanding
362+
run: ./v -freestanding run vlib/os/bare/bare_example_linux.v
363363
- name: v self compilation
364364
run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v
365365
- name: -usecache

vlib/builtin/linux_bare/linux_syscalls.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ fn sys_read(fd i64, buf &byte, count u64) (i64, Errno) {
236236
}
237237

238238
// 1 sys_write
239-
fn sys_write(fd i64, buf &byte, count u64) (i64, Errno) {
239+
pub fn sys_write(fd i64, buf &byte, count u64) (i64, Errno) {
240240
return split_int_errno(sys_call3(1, u64(fd), u64(buf), count))
241241
}
242242

vlib/os/bare/bare_example_linux.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ fn main() {
44
sys_write(1, s.str, u64(s.len))
55
a := s[0]
66
println('Hello freestanding!')
7+
println(a)
78
}

0 commit comments

Comments
 (0)