mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a SWIFT_STDLIB_HAS_DARWIN_ASL config flag to allow removing asl_log() usage in freestanding build (#39584)
This commit is contained in:
committed by
GitHub
parent
75b57ea02d
commit
653642df75
@@ -41,7 +41,7 @@ void error(const char *fmt, ...) {
|
||||
vsnprintf(buffer, sizeof(buffer), fmt, argp);
|
||||
va_end(argp);
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#if SWIFT_STDLIB_HAS_ASL
|
||||
asl_log(nullptr, nullptr, ASL_LEVEL_ERR, "%s", buffer);
|
||||
#elif defined(__ANDROID__)
|
||||
__android_log_print(ANDROID_LOG_FATAL, "SwiftRuntime", "%s", buffer);
|
||||
|
||||
Reference in New Issue
Block a user