Re: [swift-corelibs-dev] Suggested DateInterval API improvement

2016-06-20 Thread Greg Titus via swift-corelibs-dev
One domain where this happens is project planning back from a fixed end date. The most well-known of these would be rocket launches: “T minus 10 seconds” is exactly a negative time interval from an end date. That being said, it’s a fairly uncommon use case and I wouldn’t change the API to suppo

Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode

2016-06-20 Thread Madhu Samuel via swift-corelibs-dev
Wow, the swift build is a success. Though there are a few warnings at the end. I guess the issue was with cached values in the build directory. But, in the next step to build xctest using "/utils/build-script --preset corelibs-xctest", the build fails. The build error log is given below.

Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode

2016-06-20 Thread Madhu Samuel via swift-corelibs-dev
Hi Brian Croom, Thanks for the quick response. I deleted the entire build directory now. Initiated a new build. Fingers crossed... Will update the status as soon as the build finishes. On Tue, Jun 21, 2016 at 12:31 PM, Brian Croom wrote: > Hmm, have you tried deleting your `build/swift-macosx-

Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode

2016-06-20 Thread Madhu Samuel via swift-corelibs-dev
Hi Brian Gesiak, Yep, I checked out the latest cod using 'utils/update-checkout' and xcode-select --print-path points to the XCode 8 beta. On Tue, Jun 21, 2016 at 12:31 PM, Brian Gesiak wrote: > Madhu, > > In addition the checking out the latest code in apple/swift, please run > `utils/update-c

Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode

2016-06-20 Thread Brian Gesiak via swift-corelibs-dev
Madhu, In addition the checking out the latest code in apple/swift, please run `utils/update-checkout`, in order to update the other repositories Swift depends upon. I haven't been able to build OS X since Xcode 8 beta was required for the build, so I'm not sure about your specific error, unfort

Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode

2016-06-20 Thread Brian Croom via swift-corelibs-dev
Hmm, have you tried deleting your `build/swift-macosx-x86_64/` directory? I wonder if cached CMake values could cause that issue. (By the way, I can confirm that getting the build going for the first time is the most challenging! I hope we can get things going for you soon.) 2016-06-20 22:22 GMT-

Re: [swift-corelibs-dev] [XCTest] Cannot build using XCode

2016-06-20 Thread Madhu Samuel via swift-corelibs-dev
So after spending almost a week trying to build swift and core libraries (mainly xctest) during the end of May un-successfully, I made up my mind to give another attempt today. I checkout the latest code from swift repo. Since the xctest documentation says, "Confirm you're able to build the Swift

Re: [swift-corelibs-dev] Suggested DateInterval API improvement

2016-06-20 Thread Tony Parker via swift-corelibs-dev
Hi Dave, We had some extensive discussion about this ourselves, but we couldn’t come up with a compelling use case for a negative time interval. Can you describe how you wanted to use it? - Tony > On Jun 17, 2016, at 2:01 PM, Dave Lyon via swift-corelibs-dev > wrote: > > In attempting to us

[swift-corelibs-dev] Suggested DateInterval API improvement

2016-06-20 Thread Dave Lyon via swift-corelibs-dev
In attempting to use the new DateInterval value type to improve some existing code, I ran in to an issue where DateIntervals cannot be "reverse" intervals, which is contrary to how TimeInterval works, and somewhat confusing. I would propose that the DateInterval value type should be able to be pro