Skip to content

Commit

Permalink
Added Atomic Wait Queue patch
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed May 27, 2022
1 parent a4d78c5 commit eb9bf39
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion fetch-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,27 @@ else
echo "Download ${DOWNLOAD_FILE}"
wget $SRCURL -O $DOWNLOAD_FILE
fi
patch ./downloads/swift-$SWIFT_VERSION/stdlib/public/runtime/Float16Support.cpp $DOWNLOAD_FILE
patch ./downloads/swift-$SWIFT_VERSION/stdlib/public/runtime/Float16Support.cpp $DOWNLOAD_FILE

DOWNLOAD_FILE=./downloads/swift-stdlib-AtomicWaitQueue.patch
SRCURL=https://gist.githubusercontent.com/colemancda/d88a775f2bf3e234f4fa705c46b66b37/raw/1d8d54f23f5564f847ab39c65b59d287bba4f333/swift-5.6-AtomicWaitQueue.patch
if test -f "$DOWNLOAD_FILE"; then
echo "$DOWNLOAD_FILE exists"
else
echo "Download ${DOWNLOAD_FILE}"
wget $SRCURL -O $DOWNLOAD_FILE
fi
patch ./downloads/swift-$SWIFT_VERSION/include/swift/Runtime/AtomicWaitQueue.h $DOWNLOAD_FILE

DOWNLOAD_FILE=./downloads/swift-stdlib-HeapObject.patch
SRCURL=https://gist.github.com/colemancda/d88a775f2bf3e234f4fa705c46b66b37/raw/1d8d54f23f5564f847ab39c65b59d287bba4f333/swift-5.6-HeapObject-cxx-newObject.patch
if test -f "$DOWNLOAD_FILE"; then
echo "$DOWNLOAD_FILE exists"
else
echo "Download ${DOWNLOAD_FILE}"
wget $SRCURL -O $DOWNLOAD_FILE
fi
patch ./downloads/swift-$SWIFT_VERSION/include/swift/Runtime/HeapObject.h $DOWNLOAD_FILE

# Download Dispatch
DOWNLOAD_FILE=./downloads/libdispatch-${SWIFT_VERSION}.tar.gz
Expand Down

0 comments on commit eb9bf39

Please sign in to comment.