Skip to content

Commit

Permalink
Print out MACOS_BRAND.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed May 18, 2024
1 parent 2b4fb20 commit fda0207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions etc/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion runme_nolog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fda0207

Please sign in to comment.