Skip to content

Commit 3a8fceb

Browse files
committed
Fix dylib and print macos arch
1 parent 6b6a185 commit 3a8fceb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

build_macos.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ SKIP_RISCV=${SKIP_RISCV-0}
77
SKIP_OPENOCD=${SKIP_OPENOCD-0}
88
SKIP_PICOTOOL=${SKIP_PICOTOOL-0}
99

10+
echo "Running on $(uname -m)"
11+
1012
# Install prerequisites
1113
arch -x86_64 /usr/local/bin/brew install jq libtool libusb automake hidapi jimtcl --quiet
1214
if [[ $(uname -m) == 'arm64' ]]; then

packages/macos/get-dylibs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ INSTALLDIR=$1
44

55
while true; do
66
EXES=$(find $INSTALLDIR -type f -perm -u+x)
7+
EXES="$EXES $(find $INSTALLDIR -type f -name "*.dylib")"
8+
echo "EXES: $EXES"
79
LIBS=$(otool -L $EXES | grep -E "/opt/homebrew|/usr/local/opt" | grep -v python | sort | uniq | grep -o -E "/.*\.dylib")
10+
echo "LIBS: $LIBS"
811

912
if [ ! $LIBS ]; then
1013
echo "All libraries done"

0 commit comments

Comments
 (0)