Skip to content

Commit

Permalink
always add homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Nov 25, 2021
1 parent 4dbfbf0 commit 07b4bc2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions examples/ios/build_rust_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07b4bc2

Please sign in to comment.