From 07b4bc2efc400f2b78b68093ea73618e28e314d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sat, 13 Nov 2021 10:48:04 +0100 Subject: [PATCH] always add homebrew --- examples/ios/build_rust_deps.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/ios/build_rust_deps.sh b/examples/ios/build_rust_deps.sh index c93d6d704b14b..ec39adf372daf 100755 --- a/examples/ios/build_rust_deps.sh +++ b/examples/ios/build_rust_deps.sh @@ -20,13 +20,9 @@ else export LIBRARY_PATH="$LIBRARY_PATH:$(xcrun --show-sdk-path)/usr/lib" fi -# add path to cmake, needed on apple arm processors as it's not available by default -if ! cmake --version; then - # use the one installed from homebrew - if /opt/homebrew/bin/cmake --version; then - export PATH="$PATH:/opt/homebrew/bin" - fi -fi +# add homebrew bin path, as it's the most commonly used package manager on macOS +# this is needed for cmake on apple arm processors as it's not available by default +export PATH="$PATH:/opt/homebrew/bin" IS_SIMULATOR=0 if [ "${LLVM_TARGET_TRIPLE_SUFFIX-}" = "-simulator" ]; then