Skip to content

Commit 0a19e7f

Browse files
committed
Create .cargo/config.toml with musl-specific build config
1 parent 0df25a9 commit 0a19e7f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.cargo/config.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)