Skip to content

Commit 4963cc1

Browse files
committed
Fix cross compilation (bug introduced in 84a174c)
1 parent 418e8fb commit 4963cc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,11 @@ fn main() {
246246
+ "Please, use `pkg-config` or custom mode to link to a Lua dll."
247247
);
248248

249+
let include_dir = find::probe_lua();
249250
if env::var("TARGET").unwrap() != env::var("HOST").unwrap() {
251+
// The `probe_lua` call above is still needed here
250252
generate_glue().unwrap();
251253
} else {
252-
let include_dir = find::probe_lua();
253254
build_glue(include_dir);
254255
println!("cargo:rerun-if-changed=src/ffi/glue/glue.c");
255256
}

0 commit comments

Comments
 (0)