From 60464334c1da67839468bda7b34bf5704a9c61a8 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Mon, 14 Jun 2021 12:09:23 -0700 Subject: [PATCH] Update build instructions for Windows The build instructions have been updated with necessary environment variables for newer MSVS versions. Issue #867 (MSVS 2019) Issue #336 (progress toward replacing Travis & Appveyor with GitHub Actions, which uses MSVS 2019) b/190743862 (internal; tracking replacement of Travis) Change-Id: Ic80ba22a750946a508803c52af6b7869964d595b --- docs/source/build_instructions.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/source/build_instructions.md b/docs/source/build_instructions.md index 4bd3e2fbc8..92f3a13be8 100644 --- a/docs/source/build_instructions.md +++ b/docs/source/build_instructions.md @@ -33,7 +33,7 @@ Note that `Git` must be v1.7.5 or above. ## Windows system requirements -* Visual Studio 2015 Update 3, see below (no other version is supported). +* Visual Studio 2015 Update 3, 2017, or 2019. (See below.) * Windows 7 or newer. Install Visual Studio 2015 Update 3 or later - Community Edition should work if @@ -43,6 +43,14 @@ its license is appropriate for you. Use the Custom Install option and select: - Universal Windows Apps Development Tools > Tools (1.4.1) and Windows 10 SDK (10.0.14393) +If using VS 2017 or VS 2019, you must set the following environment variables, +with versions and paths adjusted to match your actual system: + +```shell +GYP_MSVS_VERSION="2019" +GYP_MSVS_OVERRIDE_PATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community" +``` + ## Install `depot_tools` ### Linux and Mac