We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.cargo/config.toml
musl
1 parent 0df25a9 commit 0a19e7fCopy full SHA for 0a19e7f
1 file changed
.cargo/config.toml
@@ -0,0 +1,15 @@
1
+[target.x86_64-unknown-linux-musl]
2
+linker = "clang"
3
+rustflags = [
4
+ "-C", "link-arg=-fuse-ld=lld",
5
+ "-C", "link-arg=-static-libstdc++",
6
+ "-C", "target-feature=+crt-static",
7
+ "-L", "/usr/lib/x86_64-linux-musl",
8
+]
9
+
10
+[env]
11
+CC_x86_64-unknown-linux-musl = "clang"
12
+CXX_x86_64-unknown-linux-musl = "clang++"
13
+AR_x86_64-unknown-linux-musl = "ar"
14
+CFLAGS_x86_64-unknown-linux-musl = "-fPIC"
15
+CXXFLAGS_x86_64-unknown-linux-musl = "-fPIC -stdlib=libc++"
0 commit comments