Skip to content

[build-script] Link Objective-C runtime for XCTest #1748

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 22, 2016

Conversation

modocache
Copy link
Contributor

What's in this pull request?

The XCTest CI is currently broken for OS X. Invoking xcodebuild, even when setting the correct SWIFT_EXEC, was unable to build Foundation. The problem was that a flag to link the Objective-C runtime was not being set as it would be when building with a Swift toolchain.

Set the flag to get the builds passing. The XCTest CI presets should pass on all platforms with this change.

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.

The XCTest CI is currently broken for OS X. Invoking `xcodebuild`, even
when setting the correct `SWIFT_EXEC`, was unable to build Foundation.
The problem was that a flag to link the Objective-C runtime was not being set
as it would be when building with a Swift toolchain.

Set the flag to get the builds passing. The XCTest CI presets should
pass on all platforms with this change.
@modocache
Copy link
Contributor Author

@shahmishal Is it possible to run CI with the XCTest preset with this change?

@modocache
Copy link
Contributor Author

@mike-ferris-apple Could you help ask @swift-ci to please test? Thanks! 🙏

@shahmishal
Copy link
Member

@shahmishal Is it possible to run CI with the XCTest preset with this change?

@modocache This is not currently supported with swift-ci testing.

@shahmishal
Copy link
Member

@swift-ci Please smoke test

@modocache
Copy link
Contributor Author

Ah, too bad. Thanks anyway! In that case (assuming the tests pass), I'd like to merge this, then kick off a @swift-ci test on the swift-corelibs-xctest repository. I'm excited for that project to be tested on both Linux and OS X!

@shahmishal
Copy link
Member

@modocache Let me know once you merge this, I will trigger CI on swift-corelibs-xctest repository.

modocache added a commit that referenced this pull request Mar 22, 2016
[build-script] Link Objective-C runtime for XCTest
@modocache modocache merged commit b75d19b into swiftlang:master Mar 22, 2016
@modocache modocache deleted the ci-osx-xctest-build-fix branch March 22, 2016 02:46
@modocache
Copy link
Contributor Author

Thanks, @shahmishal! How about kicking one off for swiftlang/swift-corelibs-xctest#77?

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.

2 participants