Skip to content

Commit eb9bf39

Browse files
committed
Added Atomic Wait Queue patch
1 parent a4d78c5 commit eb9bf39

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

fetch-sources.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,27 @@ else
3939
echo "Download ${DOWNLOAD_FILE}"
4040
wget $SRCURL -O $DOWNLOAD_FILE
4141
fi
42-
patch ./downloads/swift-$SWIFT_VERSION/stdlib/public/runtime/Float16Support.cpp $DOWNLOAD_FILE
42+
patch ./downloads/swift-$SWIFT_VERSION/stdlib/public/runtime/Float16Support.cpp $DOWNLOAD_FILE
43+
44+
DOWNLOAD_FILE=./downloads/swift-stdlib-AtomicWaitQueue.patch
45+
SRCURL=https://gist.githubusercontent.com/colemancda/d88a775f2bf3e234f4fa705c46b66b37/raw/1d8d54f23f5564f847ab39c65b59d287bba4f333/swift-5.6-AtomicWaitQueue.patch
46+
if test -f "$DOWNLOAD_FILE"; then
47+
echo "$DOWNLOAD_FILE exists"
48+
else
49+
echo "Download ${DOWNLOAD_FILE}"
50+
wget $SRCURL -O $DOWNLOAD_FILE
51+
fi
52+
patch ./downloads/swift-$SWIFT_VERSION/include/swift/Runtime/AtomicWaitQueue.h $DOWNLOAD_FILE
53+
54+
DOWNLOAD_FILE=./downloads/swift-stdlib-HeapObject.patch
55+
SRCURL=https://gist.github.com/colemancda/d88a775f2bf3e234f4fa705c46b66b37/raw/1d8d54f23f5564f847ab39c65b59d287bba4f333/swift-5.6-HeapObject-cxx-newObject.patch
56+
if test -f "$DOWNLOAD_FILE"; then
57+
echo "$DOWNLOAD_FILE exists"
58+
else
59+
echo "Download ${DOWNLOAD_FILE}"
60+
wget $SRCURL -O $DOWNLOAD_FILE
61+
fi
62+
patch ./downloads/swift-$SWIFT_VERSION/include/swift/Runtime/HeapObject.h $DOWNLOAD_FILE
4363

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

0 commit comments

Comments
 (0)