Skip to content

Commit

Permalink
BaseTools: Fix the issue in VS2017/VS2019 setting
Browse files Browse the repository at this point in the history
edksetup.bat VS2017 should set VS2017 only. But now,
it will set VS2017/VS2019 both. This patch corrects it.

Signed-off-by: Liming Gao <[email protected]>
Cc: Bob Feng <[email protected]>
Cc: Yuwei Chen <[email protected]>
Reviewed-by: Bob Feng <[email protected]>
  • Loading branch information
lgao4 authored and mergify[bot] committed Aug 14, 2020
1 parent 24758e9 commit 7f7f511
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BaseTools/set_vsprefix_envs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ if not defined WINSDK_PATH_FOR_RC_EXE (
)
)

if /I "%1"=="VS2017" goto SetWinDDK

:SetVS2019
if not defined VS160COMNTOOLS (
@REM clear two envs so that vcvars32.bat can run successfully.
Expand Down Expand Up @@ -226,6 +228,8 @@ if not defined WINSDK_PATH_FOR_RC_EXE (
)
)

if /I "%1"=="VS2019" goto SetWinDDK

:SetWinDDK
if not defined WINDDK3790_PREFIX (
set WINDDK3790_PREFIX=C:\WINDDK\3790.1830\bin\
Expand Down

0 comments on commit 7f7f511

Please sign in to comment.