Skip to content

Commit 44d89ba

Browse files
committed
ci: keep Linux self-tests on established compiler
1 parent ad77e77 commit 44d89ba

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

ci/linux_ci.vsh

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,22 @@ fn test_pure_v_math_module() {
2020
exec('v -exclude @vlib/math/*.c.v test vlib/math/')
2121
}
2222
23+
fn use_established_compiler_for_self_tests() {
24+
current_vflags := os.getenv('VFLAGS')
25+
if '-old-compiler' !in current_vflags.fields() {
26+
os.setenv('VFLAGS', '${current_vflags} -old-compiler'.trim_space(), true)
27+
}
28+
}
29+
2330
fn self_tests() {
31+
// The dedicated V3 workflow owns strict V3 coverage. Keep the full vlib suite
32+
// and its nested compiler invocations on V1 so the compatibility compiler
33+
// shipped by this rollout remains tested.
34+
use_established_compiler_for_self_tests()
2435
if common.is_github_job {
25-
exec('v -W -silent test-self vlib')
36+
exec('v -old-compiler -W -silent test-self vlib')
2637
} else {
27-
exec('v -progress test-self vlib')
38+
exec('v -old-compiler -progress test-self vlib')
2839
}
2940
}
3041
@@ -242,12 +253,14 @@ fn self_tests_gcc() {
242253
}
243254
244255
fn self_tests_prod_gcc() {
256+
use_established_compiler_for_self_tests()
245257
exec('v -o vprod -prod cmd/v')
246-
exec('./vprod -silent test-self vlib')
258+
exec('./vprod -old-compiler -silent test-self vlib')
247259
}
248260
249261
fn self_tests_cstrict_gcc() {
250-
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 v -cc gcc -cstrict -silent test-self vlib')
262+
use_established_compiler_for_self_tests()
263+
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 v -old-compiler -cc gcc -cstrict -silent test-self vlib')
251264
}
252265
253266
fn build_examples_gcc() {
@@ -366,12 +379,14 @@ fn self_tests_clang() {
366379
}
367380
368381
fn self_tests_vprod_clang() {
382+
use_established_compiler_for_self_tests()
369383
exec('v -o vprod -prod cmd/v')
370-
exec('./vprod -silent test-self vlib')
384+
exec('./vprod -old-compiler -silent test-self vlib')
371385
}
372386
373387
fn self_tests_cstrict_clang() {
374-
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 ./vprod -cstrict -silent test-self vlib')
388+
use_established_compiler_for_self_tests()
389+
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 ./vprod -old-compiler -cstrict -silent test-self vlib')
375390
}
376391
377392
fn build_examples_clang() {

0 commit comments

Comments
 (0)