Skip to content

Commit

Permalink
another echo
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Dec 14, 2020
1 parent 60ecea3 commit a85be1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_python_framework
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ if [ "${TOTAL_DYLIB}" != "${UNIVERSAL_DYLIB}" ] ; then
exit 1
fi

echo "Dynamic Libraries are confirmed as universal"

TOTAL_SO=$(/usr/bin/find "$TOOLSDIR/payload/${FRAMEWORKDIR}/Python.framework/Versions/Current/lib" -name "*.so" | /usr/bin/wc -l | /usr/bin/xargs)
UNIVERSAL_SO=$(/usr/bin/find "$TOOLSDIR/payload/${FRAMEWORKDIR}/Python.framework/Versions/Current/lib" -name "*.so" | /usr/bin/xargs file | /usr/bin/grep "2 architectures" | /usr/bin/wc -l | /usr/bin/xargs)
if [ "${TOTAL_SO}" != "${UNIVERSAL_SO}" ] ; then
Expand All @@ -122,3 +124,5 @@ if [ "${TOTAL_SO}" != "${UNIVERSAL_SO}" ] ; then
echo "Universal shared objects found: ${UNIVERSAL_SO}"
exit 1
fi

echo "Shared objects are confirmed as universal"

0 comments on commit a85be1e

Please sign in to comment.