From 1eac6eee5926a11925c2e46a1a913fba83c22608 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 26 Apr 2021 23:42:18 +0200 Subject: [PATCH] native: use pref.arch to host_arch() by default --- vlib/v/builder/native.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/builder/native.v b/vlib/v/builder/native.v index 9fab8ca527..fdbdd47a00 100644 --- a/vlib/v/builder/native.v +++ b/vlib/v/builder/native.v @@ -32,6 +32,9 @@ pub fn (mut b Builder) build_native(v_files []string, out_file string) { pub fn (mut b Builder) compile_native() { // v.files << v.v_files_from_dir(os.join_path(v.pref.vlib_path,'builtin','bare')) files := [b.pref.path] + if b.pref.arch == ._auto { + b.pref.arch = pref.get_host_arch() + } b.set_module_lookup_paths() b.build_native(files, b.pref.out_name) }