Skip to content

Commit 816bf30

Browse files
committed
v test-all: add a -freestanding check on Linux
1 parent 9151f08 commit 816bf30

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmd/tools/vtest-all.v

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ fn get_all_commands() []Command {
8282
okmsg: 'V can compile itself with -skip-unused.'
8383
rmfile: 'vtmp_unused'
8484
}
85+
$if linux {
86+
res << Command{
87+
line: '$vexe -cc gcc -keepc -freestanding -o bel vlib/os/bare/bare_example_linux.v'
88+
okmsg: 'V can compile with -freestanding on Linux with GCC.'
89+
rmfile: 'bel'
90+
}
91+
}
8592
res << Command{
8693
line: '$vexe $vargs -progress test-cleancode'
8794
okmsg: 'All .v files are invariant when processed with `v fmt`'
@@ -121,7 +128,7 @@ fn get_all_commands() []Command {
121128
}
122129
$if macos {
123130
res << Command{
124-
line: '$vexe -o v.c cmd/v && cc -Werror v.c && rm -rf v.c'
131+
line: '$vexe -o v.c cmd/v && cc -Werror v.c && rm -rf a.out'
125132
label: 'v.c should be buildable with no warnings...'
126133
okmsg: 'v.c can be compiled without warnings. This is good :)'
127134
rmfile: 'v.c'

0 commit comments

Comments
 (0)