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 Mar 26, 2023
1 parent abef92a commit 3c8f60e
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 --profile 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 3c8f60e

Please sign in to comment.