Make the full vcvars env available for the benefit of qmake

This commit is contained in:
Kovid Goyal 2021-03-18 22:03:29 +05:30
parent 0f2aff9a4a
commit b08794a6c2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -32,8 +32,11 @@ if iswindows:
MT = 'mt.exe'
win_cc = 'cl.exe'
win_ld = 'link.exe'
win_inc = [x for x in env['INCLUDE'].split(';') if x]
win_lib = [x for x in env['LIB'].split(';') if x]
win_inc = [x for x in env['INCLUDE'].split(os.pathsep) if x]
win_lib = [x for x in env['LIB'].split(os.pathsep) if x]
for key in env:
if key != 'PATH':
os.environ[key] = env[key]
QMAKE = 'qmake'
for x in ('qmake-qt5', 'qt5-qmake', 'qmake'):