Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 4bf7d32

Browse files
authored
Merge pull request #12 from escwxyz/main
fix: move rustflags for example template
2 parents 4369e28 + b03959c commit 4bf7d32

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# required config for dylibs on x86 macOS
2+
[target.x86_64-apple-darwin]
3+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
4+
5+
# required config for dylibs on m1/m2 macOS
6+
[target.aarch64-apple-darwin]
7+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

examples/example-plugin/Cargo.toml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,5 @@ edition = "2021"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
mlua = { version = "0.8.7", features = [
11-
"luajit",
12-
"vendored",
13-
"module"
14-
]}
10+
mlua = { version = "0.8.7", features = ["luajit", "vendored", "module"] }
1511
nvim-utils = { path = "../../" }
16-
17-
# required config for dylibs on x86 macOS
18-
[target.x86_64-apple-darwin]
19-
rustflags = [
20-
"-C", "link-arg=-undefined",
21-
"-C", "link-arg=dynamic_lookup",
22-
]
23-
24-
# required config for dylibs on m1/m2 macOS
25-
[target.aarch64-apple-darwin]
26-
rustflags = [
27-
"-C", "link-arg=-undefined",
28-
"-C", "link-arg=dynamic_lookup",
29-
]

0 commit comments

Comments
 (0)