From patchwork Fri Apr 15 18:27:17 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: 8854781 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F107BF29F for ; Fri, 15 Apr 2016 18:29:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F94B202A1 for ; Fri, 15 Apr 2016 18:29:30 +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 B6AC82011D for ; Fri, 15 Apr 2016 18:29:29 +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 1ar8Sp-0001ZF-Gr; Fri, 15 Apr 2016 18:27:31 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar8So-0001Z1-Qb for xen-devel@lists.xenproject.org; Fri, 15 Apr 2016 18:27:30 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 61/3C-07924-29231175; Fri, 15 Apr 2016 18:27:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRWlGSWpSXmKPExsXitHRDpO5EI8F wg/4nihbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8adJYYF69gqFna+ZWpgnMbaxcjJISHgL9H2 bTELiM0moCNxce5Oti5GDg4RARWJ23sNQMLMAmsYJR7eqAaxhQUCJVo2/WMEsVkEVCWO/GljB SnnFXCReH24EmKirsTJ3ZvYQWxOAVeJY/dfg00XAiq5veE9M4jNKyAocXLmExaI8ZoSrdt/s0 PY8hLNW2czQ9QrSvTPewB2jYQAt8TfbvsJjPyzkHTPQtI9C0n3AkbmVYzqxalFZalFupZ6SUW Z6RkluYmZObqGBsZ6uanFxYnpqTmJScV6yfm5mxiBoVfPwMC4g/H1T6dDjJIcTEqivNv1BMOF +JLyUyozEosz4otKc1KLDzHKcHAoSfDKGgLlBItS01Mr0jJzgFEAk5bg4FES4U0DSfMWFyTmF memQ6ROMepyLPhxey2TEEtefl6qlDhvAkiRAEhRRmke3AhYRF5ilJUS5mVkYGAQ4ilILcrNLE GVf8UozsGoJMxrDDKFJzOvBG7TK6AjmICOKHvHC3JESSJCSqqBsYDlHe+6o2mbFP+JbS9ifn9 bsDz4mGHaJQYrRgGrKIaHVTt3vZy5cYOITl7w6fmzIrdvvuVmK7BnSgPjub5/JivPrBa5/uG6 +wa/HVmXLbyMo9V6NbJfBEmuLd/+1IAl31BS7Yfq5pIF8jPS+t3zl8yYUrDnrFfSjq/W1RYa/ k2Ft7PfbRS4qMRSnJFoqMVcVJwIAB+GCr/DAgAA X-Env-Sender: prvs=906d9f6f2=roger.pau@citrix.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1460744848!27586977!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 973 invoked from network); 15 Apr 2016 18:27:29 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-16.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 15 Apr 2016 18:27:29 -0000 X-IronPort-AV: E=Sophos;i="5.24,488,1454976000"; d="scan'208";a="347409184" From: Roger Pau Monne To: Date: Fri, 15 Apr 2016 20:27:17 +0200 Message-ID: <1460744841-78382-2-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.6.4 (Apple Git-63) In-Reply-To: <1460744841-78382-1-git-send-email-roger.pau@citrix.com> References: <1460744841-78382-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Keir Fraser , Tim Deegan , Ian Jackson , Jan Beulich , Roger Pau Monne Subject: [Xen-devel] [PATCH for-4.7 1/5] 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é --- Cc: Ian Jackson Cc: Jan Beulich Cc: Keir Fraser Cc: Tim Deegan --- Config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Config.mk b/Config.mk index bfab893..deaa768 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