diff --git a/.github/workflows/bootstrapping_works_ci.yml b/.github/workflows/bootstrapping_works_ci.yml index 953aaaeecc..5f8fcd7063 100644 --- a/.github/workflows/bootstrapping_works_ci.yml +++ b/.github/workflows/bootstrapping_works_ci.yml @@ -61,13 +61,13 @@ jobs: ls -la v_from_vc v_from_vc_produced_native_v ls -la v_from_vc2 v_from_vc_produced_native_v2 - - name: Ensure v up works - run: | - ./v cmd/tools/oldv.v - ./cmd/tools/oldv -v HEAD^^^ - cd ~/.cache/oldv/v_at_HEAD___/ - ./v version - ./v -v up - ./v version - ./v -o v2 cmd/v - ./v2 -o v3 cmd/v +## - name: Ensure v up works +## run: | +## ./v cmd/tools/oldv.v +## ./cmd/tools/oldv -v HEAD^^^ +## cd ~/.cache/oldv/v_at_HEAD___/ +## ./v version +## ./v -v up +## ./v version +## ./v -o v2 cmd/v +## ./v2 -o v3 cmd/v diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index 1cf7aa7cff..64963571d6 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -184,7 +184,7 @@ pub mut: custom_prelude string // Contents of custom V prelude that will be prepended before code in resulting .c files cmain string // The name of the generated C main function. Useful with framework like code, that uses macros to re-define `main`, like SDL2 does. When set, V will always generate `int THE_NAME(int ___argc, char** ___argv){`, *no matter* the platform. lookup_path []string - output_cross_c bool // true, when the user passed `-os cross` + output_cross_c bool // true, when the user passed `-os cross` or `-cross` output_es5 bool prealloc bool vroot string @@ -741,6 +741,10 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin '-print-watched-files' { res.print_watched_files = true } + '-cross' { + res.output_cross_c = true + res.build_options << '${arg}' + } '-os' { target_os := cmdline.option(current_args, '-os', '') i++