diff --git a/tools/gen_vc.v b/tools/gen_vc.v index c406a83e47..cf27b3311c 100644 --- a/tools/gen_vc.v +++ b/tools/gen_vc.v @@ -278,7 +278,7 @@ fn (gen_vc mut GenVC) generate() { v_flags := if os_name == 'nix' { '-output-cross-platform-c' } else { '-os $os_name' } c_file := 'v${vc_suffix}.c' // try generate .c file - gen_vc.cmd_exec('$v_exec $v_flags -o $c_file $git_repo_dir_v/compiler') + gen_vc.cmd_exec('$v_exec $v_flags -o $c_file $git_repo_dir_v/v.v') // check if the c file seems ok gen_vc.assert_file_exists_and_is_not_too_short(c_file, err_msg_gen_c) // embed the latest v commit hash into the c file