Skip to content
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

update conditional compilation flags #180

Merged

Conversation

larryonoff
Copy link
Contributor

@larryonoff larryonoff commented Dec 2, 2016

This a part of PR #176 to simplify base PR.

XCTMain.swift concernes me a lot, but still this file changes look correct for me.

#endif

#if os(macOS) || os(Linux) || os(FreeBSD)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the motivation for introducing this conditional? Does it fail to build in on other platforms for some reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@briancroom thank you for pointing this out. I thought that func XCTMain won't compile for iOS (e.g. since exit method usage), but I was wrong. I just checked and it compiles. So I removed this condition.

@larryonoff larryonoff force-pushed the update-conditional-compilation-flags branch from 3379156 to 7792349 Compare December 5, 2016 09:13
@larryonoff larryonoff force-pushed the update-conditional-compilation-flags branch from 7792349 to ab67a77 Compare December 5, 2016 09:17
@briancroom
Copy link
Collaborator

@swift-ci please test

@briancroom
Copy link
Collaborator

This looks great! Thanks a lot @larryonoff.

@briancroom briancroom merged commit 242864a into apple:master Dec 6, 2016
@larryonoff larryonoff deleted the update-conditional-compilation-flags branch December 6, 2016 08:01
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.

None yet

2 participants