Skip to content

Commit

Permalink
handle using gcc on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Jul 6, 2024
1 parent 4475759 commit 470bae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vlib/v/pref/pref_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ fn test_version_flag() {
$if freebsd && clang {
compiler = 'clang'
}
$if freebsd && gcc {
compiler = 'gcc'
}

v_verbose_cmd_with_additional_args_res := os.execute_opt('${vexe} -cc ${compiler} -v run ${example_path}')!.output
assert v_verbose_cmd_with_additional_args_res != v_ver_cmd_res
Expand Down

0 comments on commit 470bae6

Please sign in to comment.