Skip to content

Commit

Permalink
Better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ob committed Aug 27, 2019
1 parent b836f02 commit a30fa9f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ do
cp $SWIFT_SOURCE/$BUILD_DIR/swift-${OS}-${CPU}/bin/$tool $TOOLS/bin
done

# It's okay for grep to not find anything
set +o pipefail

echo Packaging Clang Tools
for tool in ${CLANG_TOOLS[@]}
do
cp $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/bin/$tool $TOOLS/bin
DEPS=$(otool -L $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/bin/$tool | grep @rpath | awk '{print $1}' | sed 's|@rpath/||g;')
# It's okay for grep to not find anything
DEPS=$(otool -L $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/bin/$tool | (grep @rpath || true) | awk '{print $1}' | sed 's|@rpath/||g;')
for lib in $DEPS
do
cp $SWIFT_SOURCE/$BUILD_DIR/llvm-${OS}-${CPU}/lib/$lib $TOOLS/lib
Expand Down

0 comments on commit a30fa9f

Please sign in to comment.