Procházet zdrojové kódy

config(qemu): always disable hypervisor on iOS

osy před 3 roky
rodič
revize
73557fbde8
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      Configuration/UTMQemuConfigurationQEMU.swift

+ 3 - 0
Configuration/UTMQemuConfigurationQEMU.swift

@@ -92,6 +92,9 @@ struct UTMQemuConfigurationQEMU: Codable {
             debugLogURL = dataURL.appendingPathComponent(QEMUPackageFileName.debugLog.rawValue)
             debugLogURL = dataURL.appendingPathComponent(QEMUPackageFileName.debugLog.rawValue)
             efiVarsURL = dataURL.appendingPathComponent(QEMUPackageFileName.efiVariables.rawValue)
             efiVarsURL = dataURL.appendingPathComponent(QEMUPackageFileName.efiVariables.rawValue)
         }
         }
+        #if os(iOS)
+        hasHypervisor = false // no hypervisor on iOS
+        #endif
     }
     }
     
     
     func encode(to encoder: Encoder) throws {
     func encode(to encoder: Encoder) throws {