From commits-return-5139-archive-asf-public=cust-asf.ponee.io@kudu.apache.org Thu Jan 4 22:01:17 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 473F5180657 for ; Thu, 4 Jan 2018 22:01:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3728C160C2B; Thu, 4 Jan 2018 21:01:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7DD24160C18 for ; Thu, 4 Jan 2018 22:01:16 +0100 (CET) Received: (qmail 89031 invoked by uid 500); 4 Jan 2018 21:01:15 -0000 Mailing-List: contact commits-help@kudu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kudu.apache.org Delivered-To: mailing list commits@kudu.apache.org Received: (qmail 89022 invoked by uid 99); 4 Jan 2018 21:01:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2018 21:01:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 95CA2DFCFA; Thu, 4 Jan 2018 21:01:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: danburkert@apache.org To: commits@kudu.apache.org Message-Id: <376b604465124464ba33b52dd131ef5d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: kudu git commit: Add support for clang from XCode 9 in macOS Date: Thu, 4 Jan 2018 21:01:15 +0000 (UTC) Repository: kudu Updated Branches: refs/heads/branch-1.5.x 31807acf8 -> c1d7b7867 Add support for clang from XCode 9 in macOS Change-Id: Ib636deee77471e60c02e90028a0e5cc0f303b45a Reviewed-on: http://gerrit.cloudera.org:8080/8119 Reviewed-by: Alexey Serbin Tested-by: Kudu Jenkins Reviewed-by: David Ribeiro Alves Reviewed-on: http://gerrit.cloudera.org:8080/8940 Project: http://git-wip-us.apache.org/repos/asf/kudu/repo Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/c1d7b786 Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/c1d7b786 Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/c1d7b786 Branch: refs/heads/branch-1.5.x Commit: c1d7b786711b9b8eb1731bdff12b2d0bf97abb04 Parents: 31807ac Author: Dan Burkert Authored: Thu Sep 21 12:24:31 2017 -0700 Committer: Dan Burkert Committed: Thu Jan 4 21:00:47 2018 +0000 ---------------------------------------------------------------------- cmake_modules/CompilerInfo.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kudu/blob/c1d7b786/cmake_modules/CompilerInfo.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/CompilerInfo.cmake b/cmake_modules/CompilerInfo.cmake index 7e1812c..ff5f789 100644 --- a/cmake_modules/CompilerInfo.cmake +++ b/cmake_modules/CompilerInfo.cmake @@ -42,6 +42,19 @@ elseif("${COMPILER_VERSION_FULL}" MATCHES ".*clang-8") set(COMPILER_FAMILY "clang") set(COMPILER_VERSION "3.8.0svn") +# clang on Mac OS X, XCode 9. +# +# TODO(dan): 4.0.0svn is just a guess, because Apple has not (as of the time of +# writing) released the sources [1]. [2] and [3] are good resources for +# determining the upstream Clang version as well. +# +# [1]: https://opensource.apple.com/ +# [2]: https://gist.github.com/yamaya/2924292 +# [3]: https://gist.github.com/epipping/ef8b02b0cfaec4a5ebf3a57092145a3f +elseif("${COMPILER_VERSION_FULL}" MATCHES ".*clang-9") + set(COMPILER_FAMILY "clang") + set(COMPILER_VERSION "4.0.0svn") + # gcc elseif("${COMPILER_VERSION_FULL}" MATCHES ".*gcc version.*") set(COMPILER_FAMILY "gcc")