We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374d281 commit dbc62feCopy full SHA for dbc62fe
.cargo/config.toml
@@ -6,3 +6,16 @@
6
rustflags = ["-C", "target-feature=+crt-static"]
7
[target.i686-pc-windows-msvc]
8
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
+]
0 commit comments