From 5217dd36f0af4b40d1d5ca7a8d0c596556c2dda3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 13 Sep 2023 08:31:27 +0800 Subject: [PATCH] tools/ci: Unify the version print: command xxx --version Signed-off-by: Xiang Xiao --- tools/ci/cibuild.sh | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/ci/cibuild.sh b/tools/ci/cibuild.sh index 7210a363f7..5e02fc160e 100755 --- a/tools/ci/cibuild.sh +++ b/tools/ci/cibuild.sh @@ -57,7 +57,7 @@ function arm-clang-toolchain { rm LLVMEmbeddedToolchainForArm-14.0.0-${flavor}.tar.gz fi - clang --version + command clang --version } function arm-gcc-toolchain { @@ -81,7 +81,7 @@ function arm-gcc-toolchain { rm arm-gnu-toolchain-12.3.rel1${flavor}-x86_64-arm-none-eabi.tar fi - arm-none-eabi-gcc --version + command arm-none-eabi-gcc --version } function arm64-gcc-toolchain { @@ -105,7 +105,7 @@ function arm64-gcc-toolchain { rm gcc-arm-11.2-2022.02-${flavor}-aarch64-none-elf.tar fi - aarch64-none-elf-gcc --version + command aarch64-none-elf-gcc --version } function avr-gcc-toolchain { @@ -121,7 +121,7 @@ function avr-gcc-toolchain { esac fi - avr-gcc --version + command avr-gcc --version } function binutils { @@ -140,7 +140,7 @@ function binutils { esac fi - objcopy --version + command objcopy --version } function bloaty { @@ -180,7 +180,7 @@ function c-cache { esac fi - ccache --version + command ccache --version } function clang-tidy { @@ -204,7 +204,7 @@ function elf-toolchain { esac fi - x86_64-elf-gcc --version + command x86_64-elf-gcc --version } function gen-romfs { @@ -264,11 +264,11 @@ function mips-gcc-toolchain { case ${os} in Darwin) add_path "${tools}"/pinguino-compilers/macosx/p32/bin - mips-elf-gcc --version + command mips-elf-gcc --version ;; Linux) add_path "${tools}"/pinguino-compilers/linux64/p32/bin - p32-gcc --version + command p32-gcc --version ;; esac } @@ -327,7 +327,7 @@ function riscv-gcc-toolchain { rm riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-${flavor}.tar.gz fi - riscv64-unknown-elf-gcc --version + command riscv64-unknown-elf-gcc --version } function rust { @@ -347,7 +347,7 @@ function rust { esac fi - rustc --version + command rustc --version } function rx-gcc-toolchain { @@ -398,7 +398,7 @@ function rx-gcc-toolchain { esac fi - rx-elf-gcc --version + command rx-elf-gcc --version } function sparc-gcc-toolchain { @@ -417,7 +417,7 @@ function sparc-gcc-toolchain { esac fi - sparc-gaisler-elf-gcc --version + command sparc-gaisler-elf-gcc --version } function xtensa-esp32-gcc-toolchain { @@ -441,7 +441,7 @@ function xtensa-esp32-gcc-toolchain { esac fi - xtensa-esp32-elf-gcc --version + command xtensa-esp32-elf-gcc --version } function u-boot-tools { @@ -486,8 +486,8 @@ function wasi-sdk { export WASI_SDK_PATH="${tools}/wasi-sdk" - ${WASI_SDK_PATH}/bin/clang --version - wamrc --version + command ${WASI_SDK_PATH}/bin/clang --version + command wamrc --version } function usage {