Skip to content

Commit

Permalink
Re-authorise old compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenzzer committed May 19, 2024
1 parent 205263e commit 4308a5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ class SMConfig(object):

def configure_cxx(self, cxx):
if cxx.family == 'msvc':
if cxx.version < 1929 and builder.options.generator != 'vs':
raise Exception(f'Only MSVC 2019 16.11 and later are supported, full C++20 support is required. ({str(cxx.version)} < 1929)')
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, partial C++20 support is required.')
raise Exception('Only GCC versions 9 or later are supported, full C++17 support is required.')
elif cxx.family == 'clang':
if cxx.version < 'clang-6':
raise Exception('Only clang versions 6 or later are supported, partial C++20 support is required.')
if cxx.version < 'clang-5':
raise Exception('Only clang versions 5 or later are supported, full C++17 support is required.')

if cxx.like('gcc'):
self.configure_gcc(cxx)
Expand Down

0 comments on commit 4308a5d

Please sign in to comment.