Auto merge of #25399 - larsbergstrom:easier_vs2017_install, r=jdm

Add chocolatey steps for easier VS017 install

<!-- Please describe your changes on the following line: -->
Easier install steps for getting Visual Studio 2017 Community installed on your machine.

Thanks to https://github.com/microsoft/windows-dev-box-setup-scripts/blob/master/dev_app_desktop_cplusplus.ps1 for the steps, which I shamelessly borrowed from their MIT-licensed base.

---

- [ ] There are tests for these changes OR
- [x ] These changes do not require tests because readme only

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/25399)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2020-01-03 09:14:58 -05:00 committed by GitHub
commit 2134bb15b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,15 @@ settings for the installer are fine).
7. Install Visual Studio Community 2017 (https://www.visualstudio.com/vs/community/). You MUST add "Visual C++" to the 7. Install Visual Studio Community 2017 (https://www.visualstudio.com/vs/community/). You MUST add "Visual C++" to the
list of installed components as well as the "Windows Universal C runtime." They are not on by default. Visual Studio 2017 MUST installed to the default location or mach.bat will not find it. list of installed components as well as the "Windows Universal C runtime." They are not on by default. Visual Studio 2017 MUST installed to the default location or mach.bat will not find it.
Note that version is hard to download online and is easier to install via [Chocolatey](https://chocolatey.org/install#installing-chocolatey) with:
```
choco install -y visualstudio2017community --package-parameters="'--add Microsoft.VisualStudio.Component.Git'"
Update-SessionEnvironment #refreshing env due to Git install
#--- UWP Workload and installing Windows Template Studio ---
choco install -y visualstudio2017-workload-nativedesktop
```
##### [Optional] Install LLVM for faster link times ##### [Optional] Install LLVM for faster link times
You may experience much faster builds on Windows by following these steps. (Related Rust issue: https://github.com/rust-lang/rust/issues/37543) You may experience much faster builds on Windows by following these steps. (Related Rust issue: https://github.com/rust-lang/rust/issues/37543)