Skip to content

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Jun 17, 2017

Cherry-pick #10221 into 4.0

Explanation: Fix a 4.0 regression where compilation condition with platform condition with unsupported argument was unexpectedly invalidated. For example #if arch(x86_64) || arch(ppc64) should evaluates to true for x86_64 target even while ppc64 is not valid argument for arch() platform condition. The issue was introduced in #7955. This is a regression that breaks existing code. e.g. swiftlang/swift-corelibs-foundation#1026
Scope: Affects #if and #elseif condition which contains unsupported arguments for platform conditionos(), arch(), and _endian()
SR Issue: N/A
Risk: Low
Testing: Added test cases.

@rintaro
Copy link
Member Author

rintaro commented Jun 17, 2017

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 17, 2017

@DougGregor Could you re-review this for 4.0?

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@DougGregor DougGregor assigned alblue, ematejska and tkremenek and unassigned alblue Jun 19, 2017
@DougGregor DougGregor added this to the Swift 4.0 milestone Jun 19, 2017
@tkremenek tkremenek merged commit 4bf91fe into swiftlang:swift-4.0-branch Jun 19, 2017
@rintaro rintaro deleted the 4.0-parse-ifconfig-invalid-platformarg branch July 3, 2017 11:35
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.

5 participants