Skip to content

Commit a30fa9f

Browse files
committed
Better fix
1 parent b836f02 commit a30fa9f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

package.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ do
5757
cp $SWIFT_SOURCE/$BUILD_DIR/swift-${OS}-${CPU}/bin/$tool $TOOLS/bin
5858
done
5959

60-
# It's okay for grep to not find anything
61-
set +o pipefail
62-
6360
echo Packaging Clang Tools
6461
for tool in ${CLANG_TOOLS[@]}
6562
do
6663
cp $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/bin/$tool $TOOLS/bin
67-
DEPS=$(otool -L $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/bin/$tool | grep @rpath | awk '{print $1}' | sed 's|@rpath/||g;')
64+
# It's okay for grep to not find anything
65+
DEPS=$(otool -L $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/bin/$tool | (grep @rpath || true) | awk '{print $1}' | sed 's|@rpath/||g;')
6866
for lib in $DEPS
6967
do
7068
cp $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/lib/$lib $TOOLS/lib

0 commit comments

Comments
 (0)