We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4197972 commit 49950eaCopy full SHA for 49950ea
build.rs
@@ -4,6 +4,9 @@ fn main() {
4
let host = env::var_os("HOST")
5
.map(|host| host.into_string().unwrap())
6
.unwrap();
7
+ let target = env::var_os("TARGET")
8
+ .map(|host| host.into_string().unwrap())
9
+ .unwrap();
10
11
let out_dir = env::var_os("OUT_DIR").map(PathBuf::from).unwrap();
12
let build_dir = out_dir.join("lua");
@@ -25,7 +28,7 @@ fn main() {
25
28
fs_extra::dir::copy(&src_dir, &build_dir, &opts).unwrap();
26
29
27
30
let mut command = Command::new("make");
- if host.contains("windows") {
31
+ if host.contains("windows") || target.contains("windows") {
32
command.arg("mingw");
33
}
34
0 commit comments