Skip to content

Commit c81adf8

Browse files
committed
check bitcode
1 parent 2c84e63 commit c81adf8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Scripts/toolchain.sh

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ pip install cython
99

1010
python toolchain.py build python3
1111

12+
for f in dist/frameworks/*.xcframework
13+
do
14+
otool -l $f/ios-arm64/lib*.a | grep __LLVM >/dev/null
15+
if [ $? ]
16+
then
17+
echo "$(basename $f) contains bitcode"
18+
else
19+
echo "$(basename $f) does NOT contain bitcode"
20+
fi
21+
done
22+
1223
mv dist/frameworks/lib* .
1324
mv libpython3.xcframework dist/frameworks
1425

0 commit comments

Comments
 (0)