I recall the time formatter being deprecated in favor of measfmt, so you might 
be right that uatimeunitformat isn't needed. I think some functions in 
uatimeunitformat.cpp made combining units easier when calling from (then 
NS)DateComponentsFormatter, but perhaps that can be put functionality in a 
(Swift-)CFDateComponentsFormatter wrapper. (Not sure if Apple will come out 
with its own CFDateComponentsFormatter).


I think this was what I had to change to get C++ working:
https://github.com/apple/swift-corelibs-foundation/blob/master/lib/phases.py
The includes for CompileCxx should be more like CompileC.

Regards,
Will Stanton

Sent from my iPhone

> On Aug 22, 2016, at 15:58, Henry Betts via swift-corelibs-dev 
> <swift-corelibs-dev@swift.org> wrote:
> 
> Yes - I was planning on including uameasureformat.cpp for the linux build, 
> although I was also unsure whether the build script was setup to compile c++.
> Noticed a bug in uameasureformat.cpp by the way; DURATION_DAY and 
> DURATION_WEEK are the wrong way around!
> 
> I’m a bit confused by uatimeunitformat. I’m probably missing something 
> obvious, but what can it do that uameasureformat can’t do?

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to