Skip to content

Commit 9351de6

Browse files
committed
Improve Dockerfile
since swiftlang/swift#3594 & swiftlang/swift#3595 were recently merged, we can build SourceKit without any patches to Swift! 🎉
1 parent 9fee3ef commit 9351de6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:15.10
22
MAINTAINER JP Simard <[email protected]>
33

44
# Install Dependencies
@@ -30,21 +30,19 @@ RUN apt-get update && \
3030

3131
WORKDIR swift-development
3232

33-
# Clone & Build With Dispatch
33+
# Clone & Check Out
3434
RUN git clone https://github.com/apple/swift.git && \
3535
cd swift && \
3636
utils/update-checkout --clone && \
37+
38+
# Build With Dispatch
3739
utils/build-script --libdispatch && \
3840

3941
# Build With SourceKit
4042
rm /swift-development/build/Ninja-DebugAssert/swift-linux-x86_64/CMakeCache.txt && \
41-
git remote add jpsim https://github.com/jpsim/swift.git && \
42-
git fetch jpsim && \
43-
git cherry-pick -n 46b5263 && \
44-
utils/build-script --libdispatch && \
43+
utils/build-script --libdispatch --extra-cmake-options="-DSWIFT_BUILD_SOURCEKIT:BOOL=TRUE" && \
4544

4645
# Build Toolchain
47-
git reset --hard && \
4846
utils/build-toolchain local.swift && \
4947

5048
# Clean Up

0 commit comments

Comments
 (0)