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 45fd2fa commit 1c969daCopy full SHA for 1c969da
mlua-sys/build/main_inner.rs
@@ -1,3 +1,5 @@
1
+use std::env;
2
+
3
cfg_if::cfg_if! {
4
if #[cfg(any(feature = "luau", feature = "vendored"))] {
5
#[path = "find_vendored.rs"]
@@ -17,8 +19,8 @@ fn main() {
17
19
18
20
println!("cargo:rerun-if-changed=build");
21
- #[cfg(windows)]
- if cfg!(feature = "module") {
22
+ let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
23
+ if target_os == "windows" && cfg!(feature = "module") {
24
if !std::env::var("LUA_LIB_NAME").unwrap_or_default().is_empty() {
25
// Don't use raw-dylib linking
26
find::probe_lua();
0 commit comments