Skip to content

Commit

Permalink
Updated the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam committed Jun 18, 2019
1 parent 255d1bb commit c6df9e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildscripts/buildtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def determine_compiler(self, sdk_dir, vs_ver):
# 15.9.28307.344
# But if only VS 2017 is present, temp.txt will only have one value like this:
# 15.9.28307.344
# On the other hand, if only VS 2019 is present, temp.txt will be empty.
# Likewise, if only VS 2019 is present, temp.txt contains only the one for 16.
# We can achieve the above by checking for version [15,16), in which case
# even if both compilers are present, it only returns one. If only VS 2019
# exists, it's empty.
# exists, temp.txt is empty
command = '{0} -version [{1},{2}) -property installationVersion '.format(vswhere, vs_ver, vs_ver + 1)
os.system(command + ' > temp.txt')

Expand All @@ -95,7 +95,7 @@ def determine_compiler(self, sdk_dir, vs_ver):
vc = ver[:2]
if vc == '15':
return 'vc15'
else:
else: # For VS2019, it's 'vs' instead of 'vc'
return 'vs16'

def compiler_version(self, sdk_dir):
Expand Down

0 comments on commit c6df9e9

Please sign in to comment.