We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afed427 + 3251df8 commit d0e7398Copy full SHA for d0e7398
stdlib/public/Concurrency/Actor.cpp
@@ -332,13 +332,15 @@ static bool swift_task_isCurrentExecutorImpl(ExecutorRef executor) {
332
static unsigned unexpectedExecutorLogLevel = 1;
333
334
static void checkUnexpectedExecutorLogLevel(void *context) {
335
+#if SWIFT_STDLIB_HAS_ENVIRON
336
const char *levelStr = getenv("SWIFT_UNEXPECTED_EXECUTOR_LOG_LEVEL");
337
if (!levelStr)
338
return;
339
340
long level = strtol(levelStr, nullptr, 0);
341
if (level >= 0 && level < 3)
342
unexpectedExecutorLogLevel = level;
343
+#endif // SWIFT_STDLIB_HAS_ENVIRON
344
}
345
346
SWIFT_CC(swift)
0 commit comments