cmd/tools/gen_vc.v: use -os cross
parent
f6480be3aa
commit
a58be3af0c
|
@ -45,7 +45,7 @@ const(
|
||||||
// name
|
// name
|
||||||
app_name = 'gen_vc'
|
app_name = 'gen_vc'
|
||||||
// version
|
// version
|
||||||
app_version = '0.1.1'
|
app_version = '0.1.2'
|
||||||
// description
|
// description
|
||||||
app_description = 'This tool regenerates V\'s bootstrap .c files every time the V master branch is updated.'
|
app_description = 'This tool regenerates V\'s bootstrap .c files every time the V master branch is updated.'
|
||||||
// assume something went wrong if file size less than this
|
// assume something went wrong if file size less than this
|
||||||
|
@ -288,7 +288,7 @@ fn (gen_vc mut GenVC) generate() {
|
||||||
// build v.c for each os
|
// build v.c for each os
|
||||||
for os_name in vc_build_oses {
|
for os_name in vc_build_oses {
|
||||||
vc_suffix := if os_name == 'nix' { '' } else { '_${os_name[..3]}' }
|
vc_suffix := if os_name == 'nix' { '' } else { '_${os_name[..3]}' }
|
||||||
v_flags := if os_name == 'nix' { '-output-cross-platform-c' } else { '-os $os_name' }
|
v_flags := if os_name == 'nix' { '-os cross' } else { '-os $os_name' }
|
||||||
c_file := 'v${vc_suffix}.c'
|
c_file := 'v${vc_suffix}.c'
|
||||||
// try generate .c file
|
// try generate .c file
|
||||||
gen_vc.cmd_exec('$v_exec $v_flags -o $c_file $git_repo_dir_v/cmd/v')
|
gen_vc.cmd_exec('$v_exec $v_flags -o $c_file $git_repo_dir_v/cmd/v')
|
||||||
|
|
Loading…
Reference in New Issue