Statically link the C runtime on Windows (#7246)

This commit is contained in:
Pierre Krieger 2018-01-11 15:41:23 +01:00 committed by Kirill Pimenov
parent bf2a925333
commit 9a12945304
2 changed files with 3 additions and 4 deletions

3
.cargo/config Normal file
View File

@ -0,0 +1,3 @@
[target.x86_64-pc-windows-msvc]
# Link the C runtime statically ; https://github.com/paritytech/parity/issues/6643
rustflags = ["-Ctarget-feature=+crt-static"]

View File

@ -92,10 +92,6 @@ section "install"
file /oname=ptray.exe ..\windows\ptray\x64\Release\ptray.exe
file "logo.ico"
file vc_redist.x64.exe
ExecWait '"$INSTDIR\vc_redist.x64.exe" /passive /norestart'
delete $INSTDIR\vc_redist.x64.exe
# Add any other files for the install directory (license files, app data, etc) here
# Uninstaller - See function un.onInit and section "uninstall" for configuration