Skip to content

Commit

Permalink
Use swift-3.1.1-RELEASE + cherry picking PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-nomura committed Apr 26, 2017
1 parent 612761a commit 3f82132
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
But official distribution of Swift Toolchain for Linux does not have SourceKit yet.
This repository provides building method of docker images containing Swift Toolchain for Linux with SourceKit.

## Base version of Swift is `swift-3.1-RELEASE`
It contains Swift repositories as submodules. Each submodules are basically pointing commits tagged by `swift-3.1-RELEASE`.
## Base version of Swift is `swift-3.1.1-RELEASE`
It contains Swift repositories as submodules. Each submodules are basically pointing commits tagged by `swift-3.1.1-RELEASE`.

## How to build images
This repository provides two methods for building Docker images

- **[recommended]** Build `sourcekit-builder` and `sourcekit:31` images
- **[recommended]** Build `sourcekit-builder` and `sourcekit:311` images
- Build in the Docker Container placing source into Shared Volume
This method is intended to using workflow on tweaking Swift build.

### Build `sourcekit-builder` and `sourcekit:31` images
### Build `sourcekit-builder` and `sourcekit:311` images
```sh
# Build `sourcekit-builder` image
$ docker build -t sourcekit-builder:31 https://github.com/norio-nomura/docker-sourcekit-builder.git
$ docker build -t sourcekit-builder:311 https://github.com/norio-nomura/docker-sourcekit-builder.git
# Build `sourcekit` image using context created by `sourcekit-builder`
$ docker run --rm sourcekit-builder:31 context | docker build -t sourcekit:31 -
$ docker run --rm sourcekit-builder:311 context | docker build -t sourcekit:311 -
```

### Build in the Docker Container placing source into Shared Volume
Expand All @@ -41,9 +41,9 @@ $ ./build-sourcekit-sv.sh
**Docker for Mac has some issues on using shared volume that causes errors or stop on building Swift.**
See [Setup `docker-machine` on Mac](docker-machine-on-mac.md).

## Build `SourceKitten` using `sourcekit:31` image
## Build `SourceKitten` using `sourcekit:311` image
```sh
$ docker run -it -v `pwd`:`pwd` -w `pwd`/SourceKitten sourcekit:31 bash
$ docker run -it -v `pwd`:`pwd` -w `pwd`/SourceKitten sourcekit:311 bash
> $ swift build
> $ swift test
```
2 changes: 1 addition & 1 deletion build-sourcekit-sv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DOCKER_RUN_OPTIONS="-it -v ${WORK_DIR}:${WORK_DIR} -w ${WORK_DIR} --rm"
SOURCEKIT_IMAGE="sourcekit:sv"
REVISION="`git rev-parse --short HEAD|tr -d '\n'`"
SRC_DIR=${WORK_DIR}/swift
TOOLCHAIN_VERSION="swift-3.1-RELEASE-${REVISION}-with-sourcekit"
TOOLCHAIN_VERSION="swift-3.1.1-RELEASE-${REVISION}-with-sourcekit"
ARCHIVE="${TOOLCHAIN_VERSION}.tar.gz"
SWIFT_INSTALLABLE_PACKAGE="${WORK_DIR}/build/${ARCHIVE}"
SWIFT_INSTALL_DIR="${WORK_DIR}/build/swift-nightly-install"
Expand Down
2 changes: 1 addition & 1 deletion llvm
2 changes: 1 addition & 1 deletion swift
Submodule swift updated 66 files
+1 −1 CMakeLists.txt
+20 −17 include/swift/AST/ModuleLoader.h
+6 −0 include/swift/ClangImporter/ClangImporter.h
+1 −1 include/swift/SIL/SILNodes.def
+5 −0 include/swift/SILOptimizer/Utils/Local.h
+1 −0 lib/AST/CMakeLists.txt
+7 −1 lib/AST/Decl.cpp
+55 −0 lib/AST/ModuleLoader.cpp
+1 −1 lib/Basic/Version.cpp
+106 −23 lib/ClangImporter/ClangImporter.cpp
+6 −0 lib/ClangImporter/ImporterImpl.h
+7 −0 lib/ClangImporter/SwiftLookupTable.h
+3 −2 lib/FrontendTool/FrontendTool.cpp
+12 −1 lib/FrontendTool/ReferenceDependencies.cpp
+10 −0 lib/FrontendTool/ReferenceDependencies.h
+6 −1 lib/IRGen/GenClass.cpp
+51 −8 lib/IRGen/GenFunc.cpp
+3 −0 lib/SIL/LoopInfo.cpp
+3 −0 lib/SIL/SILInstruction.cpp
+6 −1 lib/SILGen/SILGen.cpp
+0 −5 lib/SILGen/SILGenFunction.cpp
+1 −1 lib/SILGen/SILGenMaterializeForSet.cpp
+1 −1 lib/SILGen/SILGenProfiling.cpp
+7 −0 lib/SILGen/SILGenType.cpp
+10 −3 lib/SILOptimizer/Analysis/EscapeAnalysis.cpp
+3 −3 lib/SILOptimizer/Utils/Local.cpp
+31 −27 lib/Sema/CodeSynthesis.cpp
+31 −19 lib/Sema/TypeChecker.cpp
+1 −1 stdlib/public/SDK/Foundation/Data.swift
+0 −8 stdlib/public/core/Sequence.swift
+100 −0 test/ClangImporter/Inputs/many-imports/module.modulemap
+2 −0 test/ClangImporter/Inputs/many-imports/obsoleted.h
+110 −0 test/ClangImporter/diags-with-many-imports.swift
+21 −0 test/ClangImporter/pch-bridging-header-deps.swift
+2 −4 test/DebugInfo/generic_enum_closure.swift
+2 −2 test/Driver/multi-threaded.swift
+8 −8 test/Frontend/dependencies.swift
+0 −24 test/IRGen/class_resilience.swift
+2 −2 test/IRGen/condfail.sil
+44 −0 test/IRGen/objc_alloc.sil
+51 −0 test/IRGen/partial_apply.sil
+31 −0 test/Interpreter/objc_class_properties.swift
+8 −8 test/SILGen/addressors.swift
+37 −0 test/SILGen/coverage_toplevel.swift
+7 −8 test/SILGen/dynamic.swift
+17 −17 test/SILGen/guaranteed_self.swift
+5 −5 test/SILGen/ivar_destroyer.swift
+1 −0 test/SILGen/lifetime.swift
+7 −0 test/SILGen/magic_identifiers_inside_property_initializers.swift
+11 −14 test/SILGen/materializeForSet.swift
+1 −1 test/SILGen/objc_attr_NSManaged.swift
+25 −2 test/SILGen/objc_witnesses.swift
+6 −7 test/SILGen/specialize_attr.swift
+34 −0 test/SILOptimizer/dead_array_elim.sil
+16 −0 test/SILOptimizer/dead_store_elim.sil
+24 −0 test/SILOptimizer/redundant_load_elim.sil
+63 −0 test/SILOptimizer/simplify_cfg.sil
+7 −0 test/SourceKit/Indexing/Inputs/index_constructors_other.swift
+10 −0 test/SourceKit/Indexing/index_constructors.swift
+58 −0 test/SourceKit/Indexing/index_constructors.swift.response
+11 −0 test/multifile/synthesized-accessors/one-module-imported/library.swift
+10 −0 test/multifile/synthesized-accessors/one-module-imported/main.swift
+33 −0 test/stdlib/TestData.swift
+1 −0 utils/build-presets.ini
+1 −1 utils/build-script-impl
+5 −0 validation-test/stdlib/SequenceType.swift.gyb
2 changes: 1 addition & 1 deletion swift-corelibs-libdispatch
2 changes: 1 addition & 1 deletion swiftpm

0 comments on commit 3f82132

Please sign in to comment.