Skip to content

Commit 7371ed5

Browse files
committed
always add homebrew
1 parent e340f29 commit 7371ed5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

examples/ios/build_rust_deps.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@ else
2020
export LIBRARY_PATH="$LIBRARY_PATH:$(xcrun --show-sdk-path)/usr/lib"
2121
fi
2222

23-
# add path to cmake, needed on apple arm processors as it's not available by default
24-
if ! cmake --version; then
25-
# use the one installed from homebrew
26-
if /opt/homebrew/bin/cmake --version; then
27-
export PATH="$PATH:/opt/homebrew/bin"
28-
fi
29-
fi
23+
# add homebrew bin path, as it's the most commonly used package manager on macOS
24+
# this is needed for cmake on apple arm processors as it's not available by default
25+
export PATH="$PATH:/opt/homebrew/bin"
3026

3127
IS_SIMULATOR=0
3228
if [ "${LLVM_TARGET_TRIPLE_SUFFIX-}" = "-simulator" ]; then

0 commit comments

Comments
 (0)