From patchwork Tue Apr 26 14:52:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 8939601 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 10E809F1D3 for ; Tue, 26 Apr 2016 14:55:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1AD7F201FE for ; Tue, 26 Apr 2016 14:55:13 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3440620120 for ; Tue, 26 Apr 2016 14:55:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1av4M4-0007R6-TR; Tue, 26 Apr 2016 14:52:48 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1av4M3-0007Qn-VD for xen-devel@lists.xenproject.org; Tue, 26 Apr 2016 14:52:48 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id AF/C5-19199-FB08F175; Tue, 26 Apr 2016 14:52:47 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRWlGSWpSXmKPExsXitHSDve6+Bvl wg4nbTCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyHM5axFdxlq1i7/xRTA+Mu1i5GTg4JAX+J A/ePs4PYbAI6Ehfn7mTrYuTgEBFQkbi91wAkzCywhlHi4Y1qEFtYIEzi/tzVjCA2i4CqxNNP/ 5lBbF4BF4kP0+6yQYzUlTi5exPYSE4BV4nNC14xgdhCQDVLNj1mh6gXlDg58wkLxHxNidbtv9 khbHmJ5q2zmSHqFSX65z2Amsktcfv0VOYJjPyzkLTPQtI+C0n7AkbmVYwaxalFZalFuoaGekl FmekZJbmJmTm6hgamermpxcWJ6ak5iUnFesn5uZsYgSHIAAQ7GFe2Ox9ilORgUhLl5QSGphBf Un5KZUZicUZ8UWlOavEhRhkODiUJ3i31QDnBotT01Iq0zBxgNMCkJTh4lER494GkeYsLEnOLM 9MhUqcYdTkW/Li9lkmIJS8/L1VKnJcHZL4ASFFGaR7cCFhkXmKUlRLmZQQ6SoinILUoN7MEVf 4VozgHo5IwbwjIKp7MvBK4Ta+AjmACOuLyIVmQI0oSEVJSDYzLmDdHf9pVuEK053BRkEqjSsq fJ1rL333K2jbtKt8KZfF0BcbpKzf9mzfjZOiTjruvtMqYTjfPDlI9I2IYvLLd7nSqac00R/kT rmekM9aYKefsrtXgO2SU1N9fr/zdM7i77elH3px/J9a25lw8tSQgUOpWvcVMNYlP6qHPj74TZ C44svDsr24lluKMREMt5qLiRAClDu64xwIAAA== X-Env-Sender: prvs=917dd492e=roger.pau@citrix.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1461682365!134709!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 14542 invoked from network); 26 Apr 2016 14:52:46 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 26 Apr 2016 14:52:46 -0000 X-IronPort-AV: E=Sophos;i="5.24,536,1454976000"; d="scan'208";a="356517554" From: Roger Pau Monne To: Date: Tue, 26 Apr 2016 16:52:10 +0200 Message-ID: <1461682343-20597-2-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.6.4 (Apple Git-63) In-Reply-To: <1461682343-20597-1-git-send-email-roger.pau@citrix.com> References: <1461682343-20597-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Keir Fraser , Tim Deegan , Ian Jackson , Jan Beulich , Roger Pau Monne Subject: [Xen-devel] [PATCH v2 for-4.7 01/14] build: make HOSTCC conditional on the value of clang X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Previously HOSTCC was always hardcoded to gcc Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Reviewed-by: Doug Goldstein --- Cc: Ian Jackson Cc: Jan Beulich Cc: Keir Fraser Cc: Tim Deegan --- Changes since v1: - Use ?= instead of = --- Config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Config.mk b/Config.mk index a0e6d4e..fd8371a 100644 --- a/Config.mk +++ b/Config.mk @@ -36,7 +36,6 @@ CONFIG_$(XEN_OS) := y SHELL ?= /bin/sh # Tools to run on system hosting the build -HOSTCC = gcc HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing @@ -50,8 +49,10 @@ DESTDIR ?= / clang ?= n ifeq ($(clang),n) gcc := y +HOSTCC ?= gcc else gcc := n +HOSTCC ?= clang endif