ci: configure crt-static with RUSTFLAGS

This commit is contained in:
anatawa12 2024-01-16 19:03:42 +09:00
commit cd8b8b5d58
No known key found for this signature in database
GPG key ID: 9CA909848B8E4EA6
2 changed files with 2 additions and 5 deletions

View file

@ -1,5 +0,0 @@
[target.'cfg(all(target_os = "linux", target_env = "musl"))']
rustflags = ["-C", "target-feature=+crt-static"]
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]

View file

@ -45,8 +45,10 @@ jobs:
rustflags: "-C link-arg=-fuse-ld=lld"
- triple: x86_64-pc-windows-msvc
on: windows-latest
rustflags: "-C target-feature=+crt-static"
- triple: aarch64-pc-windows-msvc
on: windows-latest
rustflags: "-C target-feature=+crt-static"
run-test: false
- triple: x86_64-apple-darwin
on: macos-latest