Ensure Windows build requires no dynamic dependencies
This commit is contained in:
parent
c97fd62d70
commit
9dabae1887
2 changed files with 17 additions and 4 deletions
|
@ -1,6 +1,19 @@
|
|||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
linker = "x86_64-w64-mingw32-gcc"
|
||||
ar = "x86_64-w64-mingw32-gcc-ar"
|
||||
[target.x86_64-pc-windows-msvc]
|
||||
rustflags = [
|
||||
"-C", "target-feature=+crt-static",
|
||||
"-C", "link-arg=/NODEFAULTLIB:libvcruntimed.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:vcruntime.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:vcruntimed.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:libcmtd.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:msvcrt.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:msvcrtd.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:libucrt.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:libucrtd.lib",
|
||||
"-C", "link-arg=/NODEFAULTLIB:ucrtd.lib",
|
||||
"-C", "link-arg=/DEFAULTLIB:libvcruntime.lib",
|
||||
"-C", "link-arg=/DEFAULTLIB:libcmt.lib",
|
||||
"-C", "link-arg=/DEFAULTLIB:ucrt.lib"
|
||||
]
|
||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -112,7 +112,7 @@ jobs:
|
|||
os: ubuntu-latest
|
||||
file: surreal-${{ github.ref_name }}.linux-arm64
|
||||
opts: --features storage-tikv
|
||||
- arch: x86_64-pc-windows-gnu
|
||||
- arch: x86_64-pc-windows-msvc
|
||||
os: windows-latest
|
||||
file: surreal-${{ github.ref_name }}.windows-amd64
|
||||
opts:
|
||||
|
|
Loading…
Reference in a new issue