fixup build for macos

This commit is contained in:
Wez Furlong 2020-10-05 09:11:17 -07:00
parent e2e46cb50d
commit a0b3932e6d
3 changed files with 3 additions and 2 deletions

1
Cargo.lock generated
View File

@ -2017,6 +2017,7 @@ dependencies = [
"bintree",
"config",
"downcast-rs",
"libc",
"log",
"portable-pty",
"promise",

View File

@ -12,6 +12,7 @@ async-trait = "0.1"
bintree = { path = "../bintree" }
config = { path = "../config" }
downcast-rs = "1.0"
libc = "0.2"
log = "0.4"
portable-pty = { path = "../pty", features = ["serde_support"]}
promise = { path = "../promise" }

View File

@ -1,6 +1,5 @@
use ::window::*;
use anyhow::Error;
use config::configuration;
pub use config::FrontEndSelection;
use mux::{Mux, MuxNotification};
use std::cell::RefCell;
@ -49,7 +48,7 @@ impl GuiFrontEnd {
pub fn try_new() -> anyhow::Result<Rc<GuiFrontEnd>> {
#[cfg(all(unix, not(target_os = "macos")))]
{
if !configuration().enable_wayland {
if !config::configuration().enable_wayland {
Connection::disable_wayland();
}
}