From eaf930aa8be176cc3922299e1dd722a263c77f60 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 18 Apr 2021 08:55:27 +0300 Subject: [PATCH] tools: simplify gen_vc.v --- cmd/tools/gen_vc.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tools/gen_vc.v b/cmd/tools/gen_vc.v index 6cdaca3790..fd3b4a1023 100644 --- a/cmd/tools/gen_vc.v +++ b/cmd/tools/gen_vc.v @@ -278,9 +278,8 @@ fn (mut gen_vc GenVC) generate() { gen_vc.assert_file_exists_and_is_not_too_short(v_exec, err_msg_make) // build v.c for each os for os_name in vc_build_oses { - vc_suffix := if os_name == 'nix' { '' } else { '_${os_name[..3]}' } + c_file := if os_name == 'nix' { 'v.c' } else { 'v_win.c' } v_flags := if os_name == 'nix' { '-os cross' } 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/cmd/v') // check if the c file seems ok