From ee26fae090d6e4ad25a40451fd2ccd4fa30fd9cf Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Fri, 22 May 2015 16:35:14 -0500 Subject: [PATCH] Only attempt to build X11 on Linux --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 85f2756..4debf90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,11 @@ log = "*" [dependencies.glx] git = "https://github.com/servo/rust-glx" -[dependencies.x11] +[target.i686-unknown-linux-gnu.dependencies.x11] +version = "1.1.0" +features = ["xlib"] + +[target.x86_64-unknown-linux-gnu.dependencies.x11] version = "1.1.0" features = ["xlib"]