From eae4c90ead638e5f2d31d6ee3406a56a70041e69 Mon Sep 17 00:00:00 2001 From: kyren Date: Wed, 26 Jul 2017 10:27:41 -0400 Subject: [PATCH] Fix some compile problems when builtin-lua is disabled --- build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 84c37e5..e934539 100644 --- a/build.rs +++ b/build.rs @@ -1,10 +1,11 @@ +#[cfg(feature = "builtin-lua")] extern crate gcc; -use std::env; - fn main() { #[cfg(feature = "builtin-lua")] { + use std::env; + let mut config = gcc::Config::new(); let target_os = env::var("CARGO_CFG_TARGET_OS");