Skip to content

Commit

Permalink
fix(build): never statically link against the C standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
usagi-flow committed Nov 19, 2022
1 parent 7e99087 commit 42eec8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[alias]
xtask = "run --package xtask --"
integration-test = "test --features integration --workspace --test integration"

[build]
# By default, on musl linux, statically linked binaries are produced.
# But such binaries do not support loading libraries using `dlopen()` ("libloading" crate),
# which is required for loading treesitter grammars.
rustflags = ["-C", "target-feature=-crt-static"]

0 comments on commit 42eec8a

Please sign in to comment.