Skip to content

Commit 3042cd7

Browse files
committed
[Backtracing][Linux] Enable backtrace-on-crash for Linux.
This reverts commit e5f4c20. rdar://101623265
1 parent ee55964 commit 3042cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/runtime/Backtrace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ SWIFT_RUNTIME_STDLIB_INTERNAL BacktraceSettings _swift_backtraceSettings = {
7676
// enabled
7777
#if TARGET_OS_OSX
7878
OnOffTty::TTY,
79-
#elif 0 // defined(__linux__) || defined(_WIN32)
79+
#elif defined(__linux__) // || defined(_WIN32)
8080
OnOffTty::On,
8181
#else
8282
OnOffTty::Off,
@@ -86,7 +86,7 @@ SWIFT_RUNTIME_STDLIB_INTERNAL BacktraceSettings _swift_backtraceSettings = {
8686
true,
8787

8888
// interactive
89-
#if TARGET_OS_OSX // || defined(__linux__) || defined(_WIN32)
89+
#if TARGET_OS_OSX || defined(__linux__) // || defined(_WIN32)
9090
OnOffTty::TTY,
9191
#else
9292
OnOffTty::Off,

0 commit comments

Comments
 (0)