Skip to content

[PrintAsObjC] Make sure the preprocessor checks work in a compiler different than clang #8918

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

Conversation

akyrtzi
Copy link
Contributor

@akyrtzi akyrtzi commented Apr 21, 2017

The C preprocessor rules don't short-circuit so "#if defined(__has_feature) && __has_feature(modules)" will always fail if '__has_feature' is not defined.

…fferent than clang

The C preprocessor rules don't short-circuit so "#if defined(__has_feature) && __has_feature(modules)" will always fail if '__has_feature' is not defined.
@akyrtzi akyrtzi requested a review from jrose-apple April 21, 2017 19:03
@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 21, 2017

@swift-ci smoke test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 21, 2017

Test failure is unrelated.

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 21, 2017

@swift-ci smoke test Linux platform

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 21, 2017

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 2483556 into swiftlang:master Apr 21, 2017
@akyrtzi akyrtzi deleted the printasobjc-preprocessor-directives-checks branch April 22, 2017 01:26
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