Initialize TSD on macOS even without Swift runtime (#1695)
Initialize TSD on macOS even without Swift runtime (#1695)

Without this, you get some really fun to debug segfaults at runtime
because (among other things I assume) CFRunLoopGetCurrent queries TSD
to avoid doing the heavier _CFRunLoopGet0 (which then sets the TSD to
avoid later work). But if we don't initialize the TSD machinery, the
_CFGetTSD function returns garbage and we never get a valid CFRunLoopRef
e78l/swift-corelibs-foundation,parkera/swift-corelibs-foundation,parkera/swift-corelibs-foundation,apple/swift-corelibs-foundation,parkera/swift-corelibs-foundation,e78l/swift-corelibs-foundation,parkera/swift-corelibs-foundation,apple/swift-corelibs-foundation,e78l/swift-corelibs-foundation,e78l/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,apple/swift-corelibs-foundation,e78l/swift-corelibs-foundation,parkera/swift-corelibs-foundation,apple/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,apple/swift-corelibs-foundation