From 778d01f5ab55c7ceed9948297d8c230950f3ab22 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Wed, 6 Jan 2021 08:51:21 -0800 Subject: [PATCH] build_python_framework.sh: print any libraries found inside the generated Python framework that are not universal --- code/tools/build_python_framework.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/tools/build_python_framework.sh b/code/tools/build_python_framework.sh index 00a6da24..8cc0fb10 100755 --- a/code/tools/build_python_framework.sh +++ b/code/tools/build_python_framework.sh @@ -65,6 +65,8 @@ LIB_COUNT=$(find "${MUNKIROOT}/Python.framework" -name "*.so" -or -name "*.dylib UNIVERSAL_COUNT=$(find "${MUNKIROOT}/Python.framework" -name "*.so" -or -name "*.dylib" | xargs file | grep "2 architectures" | wc -l) if [ "$LIB_COUNT" != "$UNIVERSAL_COUNT" ] ; then echo "$LIB_COUNT libraries (*.so and *.dylib) found in the framework; only $UNIVERSAL_COUNT are universal!" + echo "The following libraries are not universal:" + find Python.framework -name "*.so" -or -name "*.dylib" | xargs file | grep -v "2 architectures" | grep -v "(for architecture" STATUS=1 fi