File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 6
6
rustflags = [" -C" , " target-feature=+crt-static" ]
7
7
[target .i686-pc-windows-msvc ]
8
8
rustflags = [" -C" , " target-feature=+crt-static" ]
9
+
10
+ # Do the same for MUSL targets. At the time of writing (2023-10-23), this is
11
+ # the default. But the plan is for the default to change to dynamic linking.
12
+ # The whole point of MUSL with respect to ripgrep is to create a fully
13
+ # statically linked executable.
14
+ #
15
+ # See: https://github.com/rust-lang/compiler-team/issues/422
16
+ # See: https://github.com/rust-lang/compiler-team/issues/422#issuecomment-812135847
17
+ [target .x86_64-unknown-linux-musl ]
18
+ rustflags = [
19
+ " -C" , " target-feature=+crt-static" ,
20
+ " -C" , " link-self-contained=yes" ,
21
+ ]
You can’t perform that action at this time.
0 commit comments