Fix some compile problems when builtin-lua is disabled
This commit is contained in:
parent
a5ea303c22
commit
eae4c90ead
5
build.rs
5
build.rs
|
@ -1,10 +1,11 @@
|
||||||
|
#[cfg(feature = "builtin-lua")]
|
||||||
extern crate gcc;
|
extern crate gcc;
|
||||||
|
|
||||||
use std::env;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
#[cfg(feature = "builtin-lua")]
|
#[cfg(feature = "builtin-lua")]
|
||||||
{
|
{
|
||||||
|
use std::env;
|
||||||
|
|
||||||
let mut config = gcc::Config::new();
|
let mut config = gcc::Config::new();
|
||||||
|
|
||||||
let target_os = env::var("CARGO_CFG_TARGET_OS");
|
let target_os = env::var("CARGO_CFG_TARGET_OS");
|
||||||
|
|
Loading…
Reference in New Issue