From fda02077fa890ff8c4f0e76647df729d44f0930e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Sat, 18 May 2024 10:25:27 -0300 Subject: [PATCH] Print out MACOS_BRAND. --- etc/functions.sh | 5 ++--- runme_nolog.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/etc/functions.sh b/etc/functions.sh index 74b1702fb..c4054bbb7 100755 --- a/etc/functions.sh +++ b/etc/functions.sh @@ -33,6 +33,8 @@ get_kernel() if [[ $KERNEL == *MSYS* || $KERNEL == *MINGW* ]]; then export KERNEL=Msys export ARCH=`which cl.exe` + elif [[ $KERNEL == *Darwin* ]]; then + export MACOS_BRAND=$(sysctl -n machdep.cpu.brand_string) fi if [[ $ARCH == "" ]]; then @@ -41,9 +43,6 @@ get_kernel() if [[ $ARCH == arm64 ]]; then export ARCH=arm64 - if [[ $KERNEL == *Darwin* ]]; then - export MACOS_BRAND=$(sysctl -n machdep.cpu.brand_string - fi elif [[ $ARCH == *64* ]]; then export ARCH=amd64 else diff --git a/runme_nolog.sh b/runme_nolog.sh index 821456e5e..122fb0328 100755 --- a/runme_nolog.sh +++ b/runme_nolog.sh @@ -172,7 +172,7 @@ echo "Build directory is ${BUILD_DIR}" echo "Build type is ${CMAKE_BUILD_TYPE}" echo "Building with ${COMPILER_VERSION}, ${CPU_CORES} cores" if [[ $KERNEL == *Darwin* ]]; then - echo "Building on MacOS Machine Brand ${MACOS_BRAND}" + echo "Building on MacOS Brand ${MACOS_BRAND}" fi echo "Compiler flags are ${FLAGS}" echo