Skip to content

SwiftSyntax: some basic changes needed for Linux support #18638

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 1 commit into from
Aug 13, 2018

Conversation

compnerd
Copy link
Member

This adds a couple of changes to support building SwiftSyntax without an ObjC
runtime as well as swift-corelibs-foundation instead of the ObjC Foundation
implemetation. This is needed to support building SwiftSyntax on Linux.

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: @harlanhaskins

@compnerd
Copy link
Member Author

@swift-ci please test

@jrose-apple jrose-apple requested a review from nkcsgexi August 10, 2018 22:50
@nkcsgexi nkcsgexi requested a review from harlanhaskins August 10, 2018 23:16
.appendingPathComponent("swiftc")
.deletingLastPathComponent();
#if !os(macOS)
swiftcURL = swiftcURL.deletingLastPathComponent();
Copy link
Contributor

@harlanhaskins harlanhaskins Aug 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: no semicolon here or on line 159

@@ -48,46 +48,53 @@ struct ProcessResult {
}
}

@inline(__always)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this needs to be @inline(__always).

@harlanhaskins
Copy link
Contributor

Small nitpicks, but thank you for tackling this!

This adds a couple of changes to support building SwiftSyntax without an ObjC
runtime as well as swift-corelibs-foundation instead of the ObjC Foundation
implemetation.  This is needed to support building SwiftSyntax on Linux.
@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 114c692df94824180f0fac30cdd1f844c2dcfeb9

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 114c692df94824180f0fac30cdd1f844c2dcfeb9

@harlanhaskins
Copy link
Contributor

harlanhaskins commented Aug 13, 2018

This is soon going to conflict with #18673

@compnerd
Copy link
Member Author

Okay, since this is ready, I'm going to merge this, and then @ahoppen can rebase/resolve the conflict. He is working on making the codebase more robust, so thats definitely a good change. This was less invasive though.

@compnerd compnerd merged commit 061ecc4 into swiftlang:master Aug 13, 2018
@compnerd compnerd deleted the SwiftSyntax-port branch August 13, 2018 19:08
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.

3 participants