Skip to content

Commit

Permalink
Hack fix for broken --gen=vs
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Dec 16, 2023
1 parent 5c971fd commit 5442046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AMBuildScript
Expand Up @@ -258,8 +258,8 @@ class SMConfig(object):

def configure_cxx(self, cxx):
if cxx.family == 'msvc':
if cxx.version < 1914:
raise Exception('Only MSVC 2017 15.7 and later are supported, full C++17 support is required.')
if cxx.version < 1914 and builder.options.generator != 'vs':
raise Exception(f'Only MSVC 2017 15.7 and later are supported, full C++17 support is required. ({str(cxx.version)} < 1914)')
elif cxx.family == 'gcc':
if cxx.version < 'gcc-9':
raise Exception('Only GCC versions 9 or later are supported, full C++17 support is required.')
Expand Down

0 comments on commit 5442046

Please sign in to comment.