{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/2541","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/2541/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/2541/comments","events_url":"https://api.github.com/repos/apple/swift/issues/2541/events","html_url":"https://github.com/apple/swift/pull/2541","id":154961560,"number":2541,"title":"Support Linux on z as a Swift platform","user":{"login":"bryanpkc","id":7143326,"avatar_url":"https://avatars.githubusercontent.com/u/7143326?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanpkc","html_url":"https://github.com/bryanpkc","followers_url":"https://api.github.com/users/bryanpkc/followers","following_url":"https://api.github.com/users/bryanpkc/following{/other_user}","gists_url":"https://api.github.com/users/bryanpkc/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanpkc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanpkc/subscriptions","organizations_url":"https://api.github.com/users/bryanpkc/orgs","repos_url":"https://api.github.com/users/bryanpkc/repos","events_url":"https://api.github.com/users/bryanpkc/events{/privacy}","received_events_url":"https://api.github.com/users/bryanpkc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-05-16T05:10:09Z","updated_at":"2016-05-20T07:46:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/2541","html_url":"https://github.com/apple/swift/pull/2541","diff_url":"https://github.com/apple/swift/pull/2541.diff","patch_url":"https://github.com/apple/swift/pull/2541.patch"},"body":"<!-- Please complete this template before creating pull request. -->\r\n#### What's in this pull request?\r\n<!-- Description about pull request. -->\r\nThis pull request adds support for Linux on IBM z Systems to Swift. It depends on pull requests in the other repos:\r\n\r\napple/swift-clang#13\r\napple/swift-llvm#8\r\napple/swift-lldb#27\r\n\r\nThe first commit in this pull request adds a new platform condition check named `endian()`, for which there are two possible values (`little` and `big`), to allow conditional compilation of endianness-specific Swift code. The second commit constitutes the bulk of infrastructure changes, including new test cases, to add support for the new target. The remaining commits deal with endianness issues in various parts of the compiler and Swift runtime. In particular, handling of enums is not yet completely fixed for big-endian systems, and we are researching a full solution (to be contributed in a future pull request). Nevertheless, the port gives us a usable compiler and REPL. Validation test results show a ~2% failure rate:\r\n\r\n```\r\n  Expected Passes    : 7166\r\n  Expected Failures  : 71\r\n  Unsupported Tests  : 797\r\n  Unexpected Failures: 162\r\n```\r\n\r\nNo regression is observed on x86_64.\r\n<!-- If this pull request resolves any bugs from Swift bug tracker -->\r\n\r\n* * * *\r\n\r\n<!-- This selection should only be completed by Swift admin -->\r\nBefore merging this pull request to apple/swift repository:\r\n- [ ] Test pull request on Swift continuous integration.\r\n\r\n<details>\r\n  <summary>Triggering Swift CI</summary>\r\n\r\nThe 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:\r\n\r\n**Smoke Testing**\r\n\r\n        Platform     | Comment\r\n        ------------ | -------------\r\n        All supported platforms     | @swift-ci Please smoke test\r\n        OS X platform               | @swift-ci Please smoke test OS X platform\r\n        Linux platform              | @swift-ci Please smoke test Linux platform\r\n\r\n **Validation Testing**\r\n\r\n        Platform     | Comment\r\n        ------------ | -------------\r\n        All supported platforms     | @swift-ci Please test\r\n        OS X platform               | @swift-ci Please test OS X platform\r\n        Linux platform              | @swift-ci Please test Linux platform\r\n\r\nNote: Only members of the Apple organization can trigger swift-ci.\r\n</details>\r\n<!-- Thank you for your contribution to Swift! -->\r\n"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/220539889","html_url":"https://github.com/apple/swift/pull/2541#issuecomment-220539889","issue_url":"https://api.github.com/repos/apple/swift/issues/2541","id":220539889,"user":{"login":"gribozavr","id":1120569,"avatar_url":"https://avatars.githubusercontent.com/u/1120569?v=3","gravatar_id":"","url":"https://api.github.com/users/gribozavr","html_url":"https://github.com/gribozavr","followers_url":"https://api.github.com/users/gribozavr/followers","following_url":"https://api.github.com/users/gribozavr/following{/other_user}","gists_url":"https://api.github.com/users/gribozavr/gists{/gist_id}","starred_url":"https://api.github.com/users/gribozavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gribozavr/subscriptions","organizations_url":"https://api.github.com/users/gribozavr/orgs","repos_url":"https://api.github.com/users/gribozavr/repos","events_url":"https://api.github.com/users/gribozavr/events{/privacy}","received_events_url":"https://api.github.com/users/gribozavr/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T07:46:07Z","updated_at":"2016-05-20T07:46:07Z","body":"The CI failed for unrelated reasons.\r\n\r\nPing @rjmccall @slavapestov for IRGen and runtime changes."}}
{"actor":{"display_login":"gribozavr"}}