Skip to content

Commit

Permalink
Cherry pick PR youtube#902: Add check for VS install directory enviro…
Browse files Browse the repository at this point in the history
…nment variable (youtube#934)

* Add check for VS install directory environment variable

b/288331601

Change-Id: I175d6600b97af6e924e6851de7efcdcf32552e73

* Update name of env variable

b/288331601

Change-Id: I27430463b3dcf748954ab0ebe1c53e884c80e0ba
(cherry picked from commit bd01afe)

Co-authored-by: Tyler Holcombe <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and TyHolc authored Jul 14, 2023
1 parent 1be9ddd commit d8013e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/config/win/visual_studio_version.gni
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ if (is_starboard) {
if (is_docker_build) {
_default_visual_studio_path = "C:/BuildTools"
} else {
_default_visual_studio_path = "C:/Program Files (x86)/Microsoft Visual Studio/2022/Professional"
_default_visual_studio_path = getenv("VSINSTALLDIR")
if (_default_visual_studio_path == "") {
_default_visual_studio_path = "C:/Program Files (x86)/Microsoft Visual Studio/2022/Professional"
}
}

declare_args() {
Expand Down

0 comments on commit d8013e8

Please sign in to comment.