Skip to content

Commit 110b1e6

Browse files
kotilndevelon2015
authored andcommitted
解决安卓共享库编译问题
1 parent 3398b8f commit 110b1e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.cargo/config

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
[build]
2-
# 编译安卓共享库时需要注释该行。否则报错:
3-
# error: cannot produce cdylib for `android v0.1.0` as the target `aarch64-linux-android` does not support these crate types
1+
[target.'cfg(windows)']
42
rustflags = ["-C", "target-feature=+crt-static"]

0 commit comments

Comments
 (0)