Skip to content

[5.1] Update swift-5.1-branch to match the swiftpm branch point #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
May 1, 2019

Conversation

benlangmuir
Copy link
Contributor

Semantically, we want our branch point to match swiftpm, but all of the
changes since then also look good to take into the branch, so just do
one last merge from master.

benlangmuir and others added 30 commits February 15, 2019 17:49
We have clangd in the toolchain now, and it's sufficient to pass our
minimal tests.  Unfortunately it's hitting frequent assertion failures
during editing, so not marking as supported yet.
Update recommended toolchain to 2019-02-14-a
While the toolchains build clangd now, not all the bots are building it,
so we cannot require it yet.
Undo optimisim around requiring clangd during testing
Hardcoding the triples was silly; the only interesting platform
difference is about which parts have a version number on macOS and which
do not.
[test] Make swiftpm test robust against host triple differences
This seems to be a commonly used syntax package for swift, so add it to
the config so it will work without troubleshooting.
[editors] Add alternative swift syntax spec to sublime config
Workaround perf test running too many iterations
Always use the latest indexstore-db and swiftpm from the corresponding
branch (currently master). This is important for swiftpm, because it
does not *guarantee* stable behaviour, so we need to match the version.
It also makes sourcekit-lsp behave more like the rest of the swift
toolchain projects, who all live on HEAD for their dependencies.
Now that we are building with HEAD swiftpm, change the recommended
toolchain to be whatever the latest available snapshot is. If you are
developing on ToT sourcekit-lsp, then using the latest snapshot is going
to have the closest match other than building the whole toolchain from
source.
Now that we build with HEAD, developers are more likely to need to run
swift-package-udpate themselves, so mention it in the build
instructions.
Remove Package.resolved and move to depending on HEAD
Add how to add code cmd in the terminal
SwiftPM's POSIX is going removed soon in order to make it more
cross-platform. This removes all usage of POSIX from sourcekit-lsp.

<rdar://problem/49198341> Move sourcekit-lsp off of SwiftPM's POSIX
Move sourcekit-lsp off of SwiftPM's POSIX
`swift build -Xcxx -I/usr/lib/swift` fails on Linux w/

```
.../sourcekit-lsp/.build/checkouts/indexstore-db/lib/CIndexStoreDB/CIndexStoreDB.cpp:20:10: fatal error: 'Block.h' file not found
#include <Block.h>
         ^~~~~~~~~
1 error generated.
```

Need to add `-I/usr/lib/swift/Block` to make it work. Confirmed via https://github.com/apple/indexstore-db
On Linux, must include full path to `Block.h`
This test will (rarely) delete enough of the string to trip over empty
line and column ranges. After this fix it should be fine to completely
empty the string.
[test] Fix rare failure in LineTable editing test
Get the pid of the current process using Foundation
Semantically, we want our branch point to match swiftpm, but all of the
changes since then also look good to take into the branch, so just do
one last merge from master.
@benlangmuir
Copy link
Contributor Author

@swift-ci please test

@aciidgh aciidgh merged commit 76ee75d into swiftlang:swift-5.1-branch May 1, 2019
@benlangmuir benlangmuir deleted the update-51 branch May 1, 2019 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants