Skip to content

Commit

Permalink
check bitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
kewlbear committed Apr 12, 2021
1 parent 2c84e63 commit c81adf8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Scripts/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ pip install cython

python toolchain.py build python3

for f in dist/frameworks/*.xcframework
do
otool -l $f/ios-arm64/lib*.a | grep __LLVM >/dev/null
if [ $? ]
then
echo "$(basename $f) contains bitcode"
else
echo "$(basename $f) does NOT contain bitcode"
fi
done

mv dist/frameworks/lib* .
mv libpython3.xcframework dist/frameworks

Expand Down

0 comments on commit c81adf8

Please sign in to comment.