[swift-dev] New Swift 2.2 Toolchain snapshot - Dec 22, 2015

2015-12-23 Thread Mishal Shah via swift-dev
New Swift 2.2 snapshot available! Download new packages from https://swift.org/download/ Following repository are tagged with swift-2.2-SNAPSHOT-2015-12-22-a https://github.com/apple/swift https://

[swift-dev] Compiling on RHEL 7

2015-12-23 Thread Jeremy Fergason via swift-dev
I have successfully built from the git repo on RHEL 7 but one of the tests fail: IDE/print_clang/header_swift_name.swift Is this expected? Here’s the relevant output: FAIL: Swift :: IDE/print_clang_header_swift_name.swift (633 of 2366) TEST 'Swift :: IDE/print_clang_hea

[swift-dev] Combining native and ObjC swift_class_getInstanceExtents entry points

2015-12-23 Thread Joe Groff via swift-dev
In the runtime currently, there are two entry points for asking for the size of a class's instances, one for known-native Swift classes, and one for possibly-ObjC classes. It looks like they're only currently used for _debugPrecondition checks in ManagedBuffer's initializers to catch improperly

Re: [swift-dev] Compiling on RHEL 7

2015-12-23 Thread Jordan Rose via swift-dev
My bad (and Kevin's bad). The test requires Objective-C, but we forgot to include that as a requirement. If you pull more recent changes the test should be disabled on non-Apple platforms. Jordan > On Dec 23, 2015, at 16:11, Jeremy Fergason via swift-dev > wrote: > > I have successfully buil

Re: [swift-dev] Implementing hasPrefix and hasSuffix

2015-12-23 Thread Kevin Ballard via swift-dev
I'm pretty sure the current implementation uses Unicode canonical equivalence to perform the comparison. This is equivalent to invoking `decomposedStringWithCanonicalMapping` on both strings and then comparing the resulting utf8 (or utf16) sequences, although it doesn't actually build new strings.