Skip to content

[build-script] XCTest xcodebuild uses SWIFT_EXEC #1620

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
Mar 12, 2016

Conversation

modocache
Copy link
Contributor

What's in this pull request?

Because the xcodebuild invocation used to compile swift-corelibs-xctest on OS X uses a toolchain that is usually out of date, it often fails (for example, when building the newly migrated Swift 3 code).

Pass the path to the freshly built swiftc to xcodebuild in order to use the latest Swift compiler. This should allow the swift-corelibs-xctest OS X CI to pass.

Resolved bug number: None


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.

Because the `xcodebuild` invocation used to compile swift-corelibs-xctest on OS X uses a toolchain that is usually out of date, it often fails (for example, when building the newly migrated Swift 3 code).

Pass the path to the freshly built `swiftc` to `xcodebuild` in order to use the latest Swift compiler.
@modocache
Copy link
Contributor Author

@shahmishal Would it be possible to trigger the "buildbot_incremental,tools=RA,stdlib=RA,XCTest" preset on OS X and Linux with these changes? I'd like to see if it gets tests passing.

@gribozavr
Copy link
Contributor

@swift-ci Please test

@modocache
Copy link
Contributor Author

The Linux SIL/Parser/undef.sil test failure seems unrelated. I imagine CI is going to be pretty rocky with Swift 3 having just been merged; perhaps we could revisit this at a calmer time.

@shahmishal
Copy link
Member

@modocache Yes, lets test buildbot_incremental,tools=RA,stdlib=RA,XCTest preset once master is stable again.

@shahmishal
Copy link
Member

@swift-ci Please test

tkremenek added a commit that referenced this pull request Mar 12, 2016
…ift-exec

[build-script] XCTest xcodebuild uses SWIFT_EXEC
@tkremenek tkremenek merged commit 81eb2fa into master Mar 12, 2016
@modocache modocache deleted the build-script-xctest-xcodebuild-swift-exec branch March 12, 2016 18:10
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