First step toward iOS Support

This commit is contained in:
Jonathan Jayet 2017-08-22 16:30:32 +02:00
parent 8ca9542de6
commit 1a447c6984
7 changed files with 22 additions and 15 deletions

View file

@ -535,7 +535,7 @@ impl UnprivilegedPipelineContent {
}
}
#[cfg(not(target_os = "windows"))]
#[cfg(all(not(target_os = "windows"), not(target_os = "ios")))]
pub fn spawn_multiprocess(self) -> Result<(), Error> {
use gaol::sandbox::{self, Sandbox, SandboxMethods};
use ipc_channel::ipc::IpcOneShotServer;
@ -583,9 +583,9 @@ impl UnprivilegedPipelineContent {
Ok(())
}
#[cfg(target_os = "windows")]
#[cfg(any(target_os = "windows", target_os = "ios"))]
pub fn spawn_multiprocess(self) -> Result<(), Error> {
error!("Multiprocess is not supported on Windows.");
error!("Multiprocess is not supported on Windows or iOS.");
process::exit(1);
}