Skip to content

Commit

Permalink
Fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Aug 30, 2024
1 parent d480427 commit 0e3b947
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion rustlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
mlua = { version = "0.10.0-beta.1", features = ["lua54", "module"] }
mlua = { version = "0.9.9", features = ["lua54", "module"] }

[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
2 changes: 1 addition & 1 deletion test/basic/rust.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
local m = require "provider.rust-lib"

m.hello("world")
m.hello("world!, hihi")

0 comments on commit 0e3b947

Please sign in to comment.