Skip to content

build: improve SourceKit handling of libdispatch #12098

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 2 commits into from
Oct 4, 2017

Conversation

compnerd
Copy link
Member

Avoid overwriting the swiftCore target in the SourceKit build.
Instead, link to the explicit variant of the swiftCore. This tracks the
dependency better and enables multiple parallel cross-compilations of
the stdlib.

Implicitly link against swiftCore when linking against libdispatch.
Remove the extraneous link against the Blocks runtime on Linux. The
add_sourcekit_executable call already handles this. Ensure that we
enable the swift SDK overlay for libdispatch by sending it the path to
the swift compiler.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

CC @gottesmm @dgrove-oss

@compnerd
Copy link
Member Author

Please test with following pull request:
swiftlang/swift-corelibs-libdispatch#307

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 10a2eb5380e1e0fea37ce5d9db0af57e74011297

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 10a2eb5380e1e0fea37ce5d9db0af57e74011297

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 10a2eb5380e1e0fea37ce5d9db0af57e74011297

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - fce570a48b32a2cee318ed2d142a4114bd453a81

@Rostepher
Copy link
Contributor

I'll take a look at this when I can. If this change is urgent then let me know and I can try to prioritize reviewing.

@compnerd
Copy link
Member Author

@Rostepher it's moderately urgent. I think that we want to make sure that the unified build is working properly for everyone. However, until the Darwin builds are switched over, I don't think that we can remove the autotools build.

CC: @das @gottesmm

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - fce570a48b32a2cee318ed2d142a4114bd453a81

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - fce570a48b32a2cee318ed2d142a4114bd453a81

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - cc35e3b6f83cf086240856f0c6a280748e381027

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - cc35e3b6f83cf086240856f0c6a280748e381027

@compnerd
Copy link
Member Author

Please test with following pull request:
swiftlang/swift-corelibs-libdispatch#307

@swift-ci please test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 825c4ed1c43f072a342eb228a202f2bf1e07242b

@compnerd
Copy link
Member Author

Please test with following pull request:
swiftlang/swift-corelibs-libdispatch#307

@swift-ci please clean test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 825c4ed1c43f072a342eb228a202f2bf1e07242b

@compnerd
Copy link
Member Author

compnerd commented Oct 1, 2017

Please test with following pull request:
swiftlang/swift-corelibs-libdispatch#307

@swift-ci please clean test Linux platform

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2017

Build failed
Swift Test Linux Platform
Git Sha - 825c4ed1c43f072a342eb228a202f2bf1e07242b

Avoid overwriting the `swiftCore` target in the SourceKit build.
Instead, link to the explicit variant of the swiftCore.  This tracks the
dependency better and enables multiple parallel cross-compilations of
the stdlib.

Implicitly link against swiftCore when linking against libdispatch.
Remove the extraneous link against the Blocks runtime on Linux.  The
`add_sourcekit_executable` call already handles this.  Ensure that we
enable the swift SDK overlay for libdispatch by sending it the path to
the swift compiler.
@compnerd
Copy link
Member Author

compnerd commented Oct 3, 2017

@swift-ci please clean test Linux platform

@compnerd
Copy link
Member Author

compnerd commented Oct 3, 2017

Please test with following pull request:
swiftlang/swift-corelibs-libdispatch#307

@swift-ci please clean test Linux platform

@swift-ci
Copy link
Contributor

swift-ci commented Oct 3, 2017

Build failed
Swift Test Linux Platform
Git Sha - 9fff09d

@compnerd
Copy link
Member Author

compnerd commented Oct 4, 2017

Please test with following pull request:
swiftlang/swift-corelibs-libdispatch#307

@swift-ci please clean test Linux platform

@compnerd
Copy link
Member Author

compnerd commented Oct 4, 2017

@swift-ci please clean test macos platform

@gottesmm
Copy link
Contributor

gottesmm commented Oct 4, 2017

I merged the libdispatch change. Trying a normal linux test.

@gottesmm
Copy link
Contributor

gottesmm commented Oct 4, 2017

@swift-ci test linux

@gottesmm
Copy link
Contributor

gottesmm commented Oct 4, 2017

@swift-ci clean test linux

@gottesmm
Copy link
Contributor

gottesmm commented Oct 4, 2017

(should have done a clean test)

@compnerd
Copy link
Member Author

compnerd commented Oct 4, 2017

The clean build also succeeded. Lets get this in then!

@compnerd compnerd merged commit fa500da into swiftlang:master Oct 4, 2017
@compnerd compnerd deleted the libdispatch branch October 4, 2017 20:40
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.

4 participants