Skip to content

[SwiftPM] Build with foundation #2406

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
May 6, 2016
Merged

Conversation

Bouke
Copy link
Contributor

@Bouke Bouke commented May 5, 2016

What's in this pull request?

A change to the build script to always build SwiftPM with foundation. See also swiftlang/swift-package-manager#292 (comment).

Part of bug number: (SR-1005)

Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
OS X platform @swift-ci Please test OS X platform
Linux platform @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

if [[ ! "${SKIP_BUILD_FOUNDATION}" ]] ; then
PRODUCTS=("${PRODUCTS[@]}" foundation)
fi
if [[ ! "${SKIP_BUILD_SWIFTPM}" ]] ; then
PRODUCTS=("${PRODUCTS[@]}" swiftpm)
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's go ahead and build SwiftPM after XCTest here, since it also uses XCTest even if it doesn't need it for the initial build currently.

@Bouke Bouke force-pushed the swiftpm-foundation branch from 541268a to e7bfa5d Compare May 5, 2016 20:08
@Bouke Bouke force-pushed the swiftpm-foundation branch from e7bfa5d to 269bd1d Compare May 5, 2016 20:29
@ddunbar
Copy link
Contributor

ddunbar commented May 5, 2016

@swift-ci please test and merge

if [[ ! "${SKIP_BUILD_FOUNDATION}" ]] ; then
PRODUCTS=("${PRODUCTS[@]}" foundation)
fi
# SwiftPM is dependent on XCTest, so XCTest must be added to the list of
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 SwiftPM actually requires XCTest as a build-time dependency. I would actually prefer to see SwiftPM built first to facilitate migrating XCTest to be built by SwiftPM in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't currently, but it does actually use XCTest today (whereas the converse is not true), and I can imagine at some point it might be desirable to "just build".

I think we are going to ultimately have to solve the circular build dependency another way, but would rather start with this order since SwiftPM does use XCTest.

@ddunbar
Copy link
Contributor

ddunbar commented May 5, 2016

@swift-ci please test and merge

@swift-ci swift-ci merged commit f2e13c5 into swiftlang:master May 6, 2016
@Bouke Bouke deleted the swiftpm-foundation branch May 10, 2016 22:28
MaxDesiatov added a commit that referenced this pull request Apr 19, 2021
Use `pip3` when `pip` is absent in macOS deps script
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