Skip to content

Commit 587fb72

Browse files
authored
v.pref: make pref_test.v be less sensitive on the specific C compiler used as a backend (#21813)
1 parent 1571645 commit 587fb72

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

vlib/v/pref/pref_test.v

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@ fn test_version_flag() {
3232
assert v_verbose_cmd_res != v_ver_cmd_res
3333
assert v_verbose_cmd_res.contains('v.pref.lookup_path:')
3434

35-
// tcc does not handle the symver assembly directive which is
36-
// a problem on FreeBSD 14
37-
mut compiler := 'tcc'
38-
$if freebsd && clang {
39-
compiler = 'clang'
40-
}
41-
42-
v_verbose_cmd_with_additional_args_res := os.execute_opt('${vexe} -cc ${compiler} -v run ${example_path}')!.output
35+
v_verbose_cmd_with_additional_args_res := os.execute_opt('${vexe} -g -v run ${example_path}')!.output
4336
assert v_verbose_cmd_with_additional_args_res != v_ver_cmd_res
4437
assert v_verbose_cmd_with_additional_args_res.contains('v.pref.lookup_path:')
4538
}

0 commit comments

Comments
 (0)