Fix some compile problems when builtin-lua is disabled

This commit is contained in:
kyren 2017-07-26 10:27:41 -04:00
parent a5ea303c22
commit eae4c90ead
1 changed files with 3 additions and 2 deletions

View File

@ -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");