Skip to content

Commit

Permalink
Windows: Statically linked C runtime (astral-sh#11589)
Browse files Browse the repository at this point in the history
Co-authored-by: T-256 <[email protected]>
  • Loading branch information
T-256 and T-256 authored May 29, 2024
1 parent 7659114 commit 5f976ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[alias]
dev = "run --package ruff_dev --bin ruff_dev"
benchmark = "bench -p ruff_benchmark --bench linter --bench formatter --"

# statically link the C runtime so the executable does not depend on
# that shared/dynamic library.
#
# See: https://github.com/astral-sh/ruff/issues/11503
[target.'cfg(all(target_env="msvc", target_os = "windows"))']
rustflags = ["-C", "target-feature=+crt-static"]

0 comments on commit 5f976ca

Please sign in to comment.