From 283d5e623373dc5fa60dc51a21183cc403f3eac0 Mon Sep 17 00:00:00 2001 From: Hase Bastian Date: Mon, 20 Feb 2017 05:00:08 +0530 Subject: Detect (non-Apple) clang as objc/c++ compiler See https://github.com/mesonbuild/meson/pull/1388 --- mesonbuild/environment.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild') diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 5d8c0dc..9fdc7f4 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -556,6 +556,8 @@ class Environment: return GnuObjCCompiler(ccache + compiler, version, is_cross, exe_wrap, defines) if out.startswith('Apple LLVM'): return ClangObjCCompiler(ccache + compiler, version, CLANG_OSX, is_cross, exe_wrap) + if out.startswith('clang'): + return ClangObjCCompiler(ccache + compiler, version, CLANG_STANDARD, is_cross, exe_wrap) self._handle_compiler_exceptions(popen_exceptions, compilers) def detect_objcpp_compiler(self, want_cross): @@ -578,6 +580,8 @@ class Environment: return GnuObjCPPCompiler(ccache + compiler, version, is_cross, exe_wrap, defines) if out.startswith('Apple LLVM'): return ClangObjCPPCompiler(ccache + compiler, version, CLANG_OSX, is_cross, exe_wrap) + if out.startswith('clang'): + return ClangObjCPPCompiler(ccache + compiler, version, CLANG_STANDARD, is_cross, exe_wrap) self._handle_compiler_exceptions(popen_exceptions, compilers) def detect_java_compiler(self): -- cgit v1.1