mirror of
https://github.com/sharkdp/bat
synced 2026-06-09 10:03:18 +00:00
ea7fafca1e
Add a .cargo/config.toml that sets target-feature=+crt-static for the i686, x86_64, and aarch64 MSVC targets so bat.exe no longer depends on the vcruntime DLL. Mirrors the fix applied to fd in sharkdp/fd#1891. Closes #3634
12 lines
410 B
TOML
12 lines
410 B
TOML
# On Windows MSVC, statically link the C runtime so that the resulting EXE does
|
|
# not depend on the vcruntime DLL.
|
|
#
|
|
# See: https://github.com/sharkdp/bat/issues/3634
|
|
|
|
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
[target.i686-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
[target.aarch64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|