From 9f0f595b351aba8edce1d27e79c3be2a50f9a1f4 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 11 Oct 2019 16:15:08 +0800 Subject: [PATCH] compilers: Fix version requirements for ClangC and AppleClangC Commit ff4a17dbef08a1d8afd075f57dbab0f5c76951ab modified the version requirements wrongly. AppleClangC should be the one with higher version numbers. Exchange them to fix the check. --- mesonbuild/compilers/c.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 1bf03bdd5..b1e6a0654 100644 --- a/mesonbuild/compilers/c.py +++ b/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):