compilers: Fix version requirements for ClangC and AppleClangC

Commit ff4a17dbef modified the version
requirements wrongly. AppleClangC should be the one with higher version
numbers. Exchange them to fix the check.
pull/6032/head
Ting-Wei Lan 6 years ago committed by Dylan Baker
parent 27c01dff01
commit 9f0f595b35
  1. 8
      mesonbuild/compilers/c.py

@ -78,8 +78,8 @@ class CCompiler(CLikeCompiler, Compiler):
class ClangCCompiler(ClangCompiler, CCompiler):
_C17_VERSION = '>=10.0.0'
_C18_VERSION = '>=11.0.0'
_C17_VERSION = '>=6.0.0'
_C18_VERSION = '>=8.0.0'
def __init__(self, exelist, version, for_machine: MachineChoice,
is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs):
@ -127,8 +127,8 @@ class AppleClangCCompiler(ClangCCompiler):
C standards were added.
"""
_C17_VERSION = '>=6.0.0'
_C18_VERSION = '>=8.0.0'
_C17_VERSION = '>=10.0.0'
_C18_VERSION = '>=11.0.0'
class EmscriptenCCompiler(LinkerEnvVarsMixin, BasicLinkerIsCompilerMixin, ClangCCompiler):

Loading…
Cancel
Save