]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Fix the issue in VS prefix setting for VS2017/VS2019
authorLiming Gao <liming.gao@intel.com>
Thu, 13 Aug 2020 06:40:40 +0000 (14:40 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 14 Aug 2020 03:07:59 +0000 (03:07 +0000)
commit24758e993ae46d0dd304c772c0fe85a3c287c855
tree96c00045545555dccc87be3efe4856fe95a3da9d
parenta5110b8955b5578bccb74f4b8a72638d6e634f6f
BaseTools: Fix the issue in VS prefix setting for VS2017/VS2019

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2896

When VS2017/VS2019 are both installed. VS prefix setting will
wrongly be set. VS2017_PREFIX is set to the same value of VS2019.

This patch clears VSINSTALLDIR and VCToolsVersion env, then
the different vcvars32 can set the correct VS env.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/set_vsprefix_envs.bat