@@ -363,6 +363,12 @@ fn native_machine_code_generation_clang() {
363363 native_machine_code_generation_common()
364364}
365365
366+ fn native_cross_compilation_to_macos() {
367+ exec('v -os macos -experimental -b native -o hw.macos examples/hello_world.v')
368+ common.file_size_greater_than('hw.macos', 8000)
369+ exec('rm -f hw.macos')
370+ }
371+
366372//
367373// Collect all tasks
368374//
@@ -409,7 +415,6 @@ const all_tasks = {
409415 'build_option_test_autofree_gcc': Task{build_option_test_autofree_gcc, 'Build option_test.c.v with -autofree (gcc)'}
410416 'v_self_compilation_parallel_cc_gcc': Task{v_self_compilation_parallel_cc_gcc, 'V self compilation with -parallel-cc (gcc)'}
411417 'build_modules_gcc': Task{build_modules_gcc, 'Build modules (gcc)'}
412- 'native_machine_code_generation_gcc': Task{native_machine_code_generation_gcc, 'native machine code generation (gcc)'}
413418 'compile_vdoctor_prod_gcc': Task{compile_vdoctor_prod_gcc, 'compile vdoctor with -prod (gcc)'}
414419 'compile_vup_prod_gcc': Task{compile_vup_prod_gcc, 'compile vup with -prod (gcc)'}
415420 // clang tasks
@@ -429,6 +434,8 @@ const all_tasks = {
429434 'build_examples_autofree_clang': Task{build_examples_autofree_clang, 'Build examples with -autofree (clang)'}
430435 'build_modules_clang': Task{build_modules_clang, 'Build modules (clang)'}
431436 'native_machine_code_generation_clang': Task{native_machine_code_generation_clang, 'native machine code generation (clang)'}
437+ 'native_machine_code_generation_gcc': Task{native_machine_code_generation_gcc, 'native machine code generation (gcc)'}
438+ 'native_cross_compilation_to_macos': Task{native_cross_compilation_to_macos, 'native cross compilation to macos'}
432439}
433440
434441common.run(all_tasks)
0 commit comments