[swift-users] New Swift Snapshots Available!

2016-08-23 Thread mishal_shah via swift-users
New Swift Snapshots Available! Download new packages from https://swift.org/download/ Swift Development: (master) Following repository are tagged with swift-DEVELOPMENT-SNAPSHOT-2016-08-23-a https://github.com/apple/swift

Re: [swift-users] Data(bytesNoCopy:count:deallocator)

2016-08-23 Thread Tony Parker via swift-users
We should probably add a predefined enum for a deallocator that matches UnsafeMutableRawPointer.allocate. Stéphane or Andy, would you mind filing a JIRA or radar for that? - Tony > On Aug 23, 2016, at 9:24 AM, Andrew Trick via swift-users > wrote: > > >> On Aug 23, 2016, at 8:40 AM, Stéphan

Re: [swift-users] LLDB module import paths

2016-08-23 Thread Dmitry Shevchenko via swift-users
Hm actually it looks like the code I mentioned in (2) is not even executed in this case. The flow goes through if (module) {} block and does not care about target.swift-module-search-paths. On Mon, Aug 22, 2016 at 5:08 PM Dmitry Shevchenko wrote: > Hello, > > We build Swift code in a location di

Re: [swift-users] Data(bytesNoCopy:count:deallocator)

2016-08-23 Thread Andrew Trick via swift-users
> On Aug 23, 2016, at 8:40 AM, Stéphane Lizeray via swift-users > wrote: > > Hello, > > I create an UsafeMutableRawPointer using the allocate method. > > Later on I want to create a Data struct from this pointer using the > bytesNoCopy initializer. Which deallocator should I pass? > > It lo

[swift-users] LLDB module import paths

2016-08-23 Thread Dmitry Shevchenko via swift-users
Hello, We build Swift code in a location different from where sources live and having a bunch of issues with LLDB in such a setup. One of the problems is LLDB not being able to import the modules referenced from binaries we build: error: Error in auto-import: failed to get module '' from AST cont

[swift-users] Data(bytesNoCopy:count:deallocator)

2016-08-23 Thread Stéphane Lizeray via swift-users
Hello, I create an UsafeMutableRawPointer using the allocate method. Later on I want to create a Data struct from this pointer using the bytesNoCopy initializer. Which deallocator should I pass? It looks like this: let retPointer = UnsafeMutableRawPointer.allocate(bytes: size, alignedTo: Memo

Re: [swift-users] Long compilation times

2016-08-23 Thread Diego Sánchez via swift-users
I haven't been able to synthesise a project where this reproduces that badly *yet*. Anyways I've filled https://bugs.swift.org/browse/SR-2461 with some more info in case it helps. Thanks! 2016-08-22 21:47 GMT+01:00 Michael Gottesman : > > On Aug 19, 2016, at 9:23 PM, Diego Sánchez via swift-user