parent
8fd9082487
commit
15d5c28c08
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -euo pipefail
|
||||||
#set -euxo pipefail
|
|
||||||
|
|
||||||
if [ $# == 0 ]; then
|
if [ $# == 0 ]; then
|
||||||
echo "Usage: `basename $0` static|dynamic"
|
echo "Usage: `basename $0` static|dynamic"
|
||||||
|
@ -33,9 +32,7 @@ function check_bitcode() {
|
||||||
BITCODE_PATTERN="__LLVM"
|
BITCODE_PATTERN="__LLVM"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if otool -l "$FWDIR/$FWNAME" | grep -q "${BITCODE_PATTERN}"; then
|
if otool -l "$FWDIR/$FWNAME" | grep "${BITCODE_PATTERN}" >/dev/null; then
|
||||||
#BITCODE_MATCHES=$(otool -l "$FWDIR/$FWNAME" | grep -c "${BITCODE_PATTERN}")
|
|
||||||
#if [[ $BITCODE_MATCHES -gt 0 ]]; then
|
|
||||||
echo "INFO: $FWDIR contains Bitcode"
|
echo "INFO: $FWDIR contains Bitcode"
|
||||||
else
|
else
|
||||||
echo "INFO: $FWDIR doesn't contain Bitcode"
|
echo "INFO: $FWDIR doesn't contain Bitcode"
|
||||||
|
|
Loading…
Reference in New Issue