Skip to content

Commit 213f81c

Browse files
committed
Set rustc flags.
1 parent 7bc1434 commit 213f81c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/native/.cargo/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[build]
2+
rustflags = ["-C", "relocation-model=pic"]
3+
4+
[target.'cfg(target_os = "windows")']
5+
rustflags = ["-C", "relocation-model=pic", "-C", "target-feature=+crt-static"]
6+
7+
[target.'cfg(all(target_os = "linux", target_env = "musl"))']
8+
rustflags = ["-C", "relocation-model=pic", "-C", "target-feature=+crt-static"]

0 commit comments

Comments
 (0)