v test-all: add a -freestanding check on Linux

pull/10552/head
Delyan Angelov 2021-06-23 13:33:16 +03:00
parent 9151f085f5
commit 816bf308ad
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 8 additions and 1 deletions

View File

@ -82,6 +82,13 @@ fn get_all_commands() []Command {
okmsg: 'V can compile itself with -skip-unused.'
rmfile: 'vtmp_unused'
}
$if linux {
res << Command{
line: '$vexe -cc gcc -keepc -freestanding -o bel vlib/os/bare/bare_example_linux.v'
okmsg: 'V can compile with -freestanding on Linux with GCC.'
rmfile: 'bel'
}
}
res << Command{
line: '$vexe $vargs -progress test-cleancode'
okmsg: 'All .v files are invariant when processed with `v fmt`'
@ -121,7 +128,7 @@ fn get_all_commands() []Command {
}
$if macos {
res << Command{
line: '$vexe -o v.c cmd/v && cc -Werror v.c && rm -rf v.c'
line: '$vexe -o v.c cmd/v && cc -Werror v.c && rm -rf a.out'
label: 'v.c should be buildable with no warnings...'
okmsg: 'v.c can be compiled without warnings. This is good :)'
rmfile: 'v.c'