Skip to content

Commit 18e765e

Browse files
committed
Adhoc fix for 'crash at hook(output.left)' in cygwin
1 parent 9d94a03 commit 18e765e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

stdlib/public/core/Print.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public func print(
2828
separator: String = " ",
2929
terminator: String = "\n"
3030
) {
31-
// Adhoc fix for 'crash at hook(output.left)' in cygwin
32-
let _playgroundPrintHook : ((String)->Void)? = {_ in () }
31+
#if os(Windows)
32+
// FIXME: This fix is for 'crash at hook(output.left)' in cygwin.
33+
// Proper fix is needed. see: https://bugs.swift.org/browse/SR-612
34+
let _playgroundPrintHook : ((String)->Void)? = nil
35+
#endif
3336
if let hook = _playgroundPrintHook {
3437
var output = _TeeStream(left: "", right: _Stdout())
3538
_print(

0 commit comments

Comments
 (0)