From dc954bbb034408fe409913036c9b0a13b018450d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 29 Sep 2020 22:10:33 +0300 Subject: [PATCH] all: use `macos` consistently in os.user_os and the compiler --- cmd/tools/vdoctor.v | 4 ++-- vlib/os/os.v | 2 +- vlib/v/builder/cc.v | 10 +++++----- vlib/v/builder/cflags.v | 3 ++- vlib/v/checker/checker.v | 6 ++---- vlib/v/fmt/tests/array_newlines_keep.vv | 2 +- vlib/v/fmt/tests/consts_expected.vv | 8 ++++---- vlib/v/fmt/tests/consts_input.vv | 4 ++-- vlib/v/gen/cgen.v | 3 --- vlib/v/gen/profile.v | 2 +- vlib/v/parser/comptime.v | 7 ++----- vlib/v/pref/os.v | 13 +++++-------- vlib/v/pref/should_compile.v | 5 ++++- 13 files changed, 31 insertions(+), 38 deletions(-) diff --git a/cmd/tools/vdoctor.v b/cmd/tools/vdoctor.v index db6ece88d5..64c5374714 100644 --- a/cmd/tools/vdoctor.v +++ b/cmd/tools/vdoctor.v @@ -30,7 +30,7 @@ fn (mut a App) collect_info() { if runtime.is_little_endian() { arch_details << 'little endian' } - if os_kind == 'mac' { + if os_kind == 'macos' { arch_details << a.cmd(command:'sysctl -n machdep.cpu.brand_string') } if os_kind == 'linux' { @@ -60,7 +60,7 @@ fn (mut a App) collect_info() { if a.cmd(command: '[ "$(awk \'\$5=="/" {print \$1}\'