forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vswhere to find Visual Studio (flutter#33448)
Rather than hard-coding a set of locations to check, use vswhere (which is installed by VS 2017 and later), and construct the vcvars64.bat path relative to that. This will allow Windows builds to work without special configuration for people who have VS installed at a custom path. Also adds error logging with different messages for each failure point, so that rather than the not-very-informative 'failed to find vcvars64.bat' message, the failure will provide feedback about what to do. This is an interim solution; later this will be replaced by a VisualStudio class with associated validator to match the structure of the other toolchains. Fixes flutter#33249
- Loading branch information
1 parent
e1a784a
commit aecf053
Showing
3 changed files
with
82 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters