Skip to content

Commit b57a4e3

Browse files
committed
process: enable verbose virgl logging for iOS
1 parent 038ff43 commit b57a4e3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Services/UTMQemuSystem.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616

1717
#import <dlfcn.h>
18+
#import <TargetConditionals.h>
1819
#import "UTMLogging.h"
1920
#import "UTMQemuSystem.h"
2021

@@ -108,7 +109,9 @@ - (void)setLogging:(QEMULogging *)logging {
108109
- (void)setHasDebugLog:(BOOL)hasDebugLog {
109110
_hasDebugLog = hasDebugLog;
110111
if (hasDebugLog) {
112+
#if TARGET_OS_OSX // FIXME: verbose logging is broken on iOS
111113
self.mutableEnvironment[@"G_MESSAGES_DEBUG"] = @"all";
114+
#endif
112115
self.mutableEnvironment[@"VK_LOADER_DEBUG"] = @"all";
113116
self.mutableEnvironment[@"VIRGL_LOG_LEVEL"] = @"debug";
114117
self.mutableEnvironment[@"MESA_DEBUG"] = @"1";

Services/UTMQemuVirtualMachine.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,7 @@ extension UTMQemuVirtualMachine {
347347
system.rendererBackend = rendererBackend
348348
system.vulkanDriver = try vulkanDriver
349349
system.shmemDirectoryURL = await config.shmemDirectoryURL
350-
#if os(macOS) // FIXME: verbose logging is broken on iOS
351350
system.hasDebugLog = hasDebugLog
352-
#endif
353351
try Task.checkCancellation()
354352

355353
if isShortcut {

0 commit comments

Comments
 (0)