From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7A7D71FE for ; Thu, 17 Jul 2014 19:55:44 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 17 Jul 2014 10:54:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,679,1400050800"; d="scan'208";a="574792599" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga002.jf.intel.com with ESMTP; 17 Jul 2014 10:54:54 -0700 Received: from irsmsx108.ger.corp.intel.com (163.33.3.3) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 17 Jul 2014 18:54:53 +0100 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.62]) by IRSMSX108.ger.corp.intel.com ([169.254.11.100]) with mapi id 14.03.0123.003; Thu, 17 Jul 2014 18:54:53 +0100 From: "Richardson, Bruce" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH 5/6] mk: add toolchain for clang and linuxapp target Thread-Index: AQHPmjxeuweNetiVbUSJZmqDW6E8eZukDQ0AgACNzwA= Date: Thu, 17 Jul 2014 17:54:52 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B0343AFE87@IRSMSX103.ger.corp.intel.com> References: <1404776219-6130-1-git-send-email-bruce.richardson@intel.com> <1404776219-6130-6-git-send-email-bruce.richardson@intel.com> <1571068.2IbkGfH4jp@xps13> In-Reply-To: <1571068.2IbkGfH4jp@xps13> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 5/6] mk: add toolchain for clang and linuxapp target X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2014 17:55:44 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Thursday, July 17, 2014 3:23 AM > To: Richardson, Bruce > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 5/6] mk: add toolchain for clang and linux= app > target >=20 > 2014-07-08 00:36, Bruce Richardson: > > --- /dev/null > > +++ b/mk/toolchain/clang/rte.vars.mk > [...] > > +ifeq ($(KERNELRELEASE),) > > +CC =3D $(CROSS)clang > > +else > > +CC =3D $(CROSS)gcc > > +endif >=20 > Why not use clang for FreeBSD modules? > This page seems to encourage clang: > https://wiki.freebsd.org/BuildingFreeBSDWithClang >=20 > -- That is an interesting one. That branch is only really applicable for Linux. In the BSD modules makefil= e we explicitly unexport CC to allow the build system to use its own defaul= t. BSD 9 defaults to using gcc 4.2, and BSD 10 to clang, so this is probabl= y the best approach, leaving the result in the hands of the user. Obviously= this won't work with cross-compiling to BSD, but I don't think that is a s= cenario we support right now anyway. /Bruce