From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0051.outbound.protection.outlook.com [104.47.41.51]) by dpdk.org (Postfix) with ESMTP id 27EF71B664 for ; Tue, 3 Apr 2018 12:21:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bBa1IQ97MOf2Bhs0ELczAJ3VVbYlPEjOAzWTtY0HB1U=; b=ES9vYwPHCiYbexZNjrrRFg/36we7OZnWTHZYMvJ3uAD8z+2rIyC8+031IPSCd20tpI41M1+zs2LlcvZ4j0U9z+t32clEenBberIewKyY1x30gYdwCnPpSKuhhJrYWRT3RgVq+xVCm329OBV0lL2HLubUvqOxrEwjABZLtds+d7Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by CY4PR07MB3462.namprd07.prod.outlook.com (2603:10b6:910:75::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Tue, 3 Apr 2018 10:21:36 +0000 From: Pavan Nikhilesh To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Tue, 3 Apr 2018 15:51:10 +0530 Message-Id: <20180403102110.9507-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180402182823.30688-1-pbhagavatula@caviumnetworks.com> References: <20180402182823.30688-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR0101CA0041.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::27) To CY4PR07MB3462.namprd07.prod.outlook.com (2603:10b6:910:75::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca78c842-f237-464d-c18a-08d5994caf9c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB3462; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 3:Hb2PVPA2d7/ZwBx9Q43pRqbiF9QOz+hWs881UH5ZwMEqbXERMmNmOb8BT7v+Vv1AQuDp3MeCGPch1xKDUBrpi62IBjrAw6Vv121JhjmRc64S77oBqxiTl3MLNCHWoBWnmVT7bF4LNopET1yON0QAr8XbpKtphg6ZGVZ+0sP7JKcRpXXfcXK1k0VNVXAXNSgdBUJ24zmA4ILM2KuCLSDxrNPPxmvY3ayVllF6+pbdARbys/MIZxoJf+C+Ft/Nc1pf; 25:YIsA0knu9vdfz9RBG77br50t9191WSlycdU9Q6IV4PhJa4bfhA7GDHsXbMFIdfb5wdXAOLCaP+anng4wvRPaDPK6oJnCt3kSZO7hhEHz6c3a8RIj3hlBPgJoh1FRUfvVnFRGto7Vkbf0CkI2bzgiDzEG17jYesfAlRcIjWxNWajRKaHg36BAMa0N0PUYMSXbSVZ+8V8l7dCFzrvAOH1LYNGATGA4eak+EAOU0Ny8LfJhT4PLcauYzQnMPy1I7f6MgvbfHn0FIo5DIm7bNj7SR+2JHNdtdHBvlapDSgwHT8aeXZmvUGsJbd2BOotjtOm9aYi0xw19QtDxCjJQBUV9ig==; 31:xv5g92hnofjzNiKbz7ZvFpDZlzog06MtqyRg+i9KEqVBpKZi5EGzF7/86h58xOvNYLklHLoCJWGzbLHnGKM33QWoR9x9YVUOQthi9KREqyetKI69LyGBmlFOat0VxcD/7ShciVNzwbRAWlfG5EQwr38Bp4gZW9Rc5hm+toSXtg9x3NsTtI7NRTnqWhVczOCqvnUfX6x7PEQVFE/N2IoPUOKE0EIPZ9pxb7NlBj9lncM= X-MS-TrafficTypeDiagnostic: CY4PR07MB3462: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 20:X3VZLmjK0lvWdwkNKSVAdwdYklGaRHE+ALO1hlHClhXKjZT0ipUHLN8HpjjFVUolWwByNUfOLpnMwKtGHtkqWfCSACexdtOOxwBgBeMx9JoBeVA4QPGg0aFlzRFnjIeQFDzwfxFJgCqJTkUlZ/q/49zSW+Cl0sVenF4CY2Evn+NfXZXWzatDw7hGyB8MNAoEZnMaH0hhNE/rIznUakmE8eUxllOblmXiJcquKzKzaWd3xsntdb+oP6631WFCc4P6Z9dt6AqnssZdd2RYpyW4Ve53H+Nt920wf9s1BByqP9TLZ2b5BPeDpb5Jgx7i8MSWSIblUhKBLkawjwCDWoNKSZr9x2NKLCl2otzx1iIkKlY4NcKb7L6fhklBfTywq/AAz3v+2uoKcAl7jtzN6sq+kwGH1UaVvKnV86aoA2qdtHA/znd58VQLQzRH7RoRtatC2Vn3DrfNTA/fR3FhfUe9g6R4AVwUNRVE4xTwE3V4U2aGCPH+P8tPSmrtIC3ylgPFXVX5dzGsxs39IS38yeW2FywQ7CVNPmJrOV7/3e32OMUJgtq/arlUpMHjvs0fPc2BxnJbkNY/GU2+bU/9/tAYHy+fLCoKxxPzRksNkIuSTBQ=; 4:uOAMNjhJP5VV/FAoZyZbFlCc9k6TgHwo7mNGvNsCGQFIMe0ZNcGFhIwRa71yH4w/qWWdIvZNXh7xVqrf3gQmG6ehjI7eMLJxSQ6lUqN2Ux/jN/myhdvsFV0T+Tbk0Wxr4+CrWQdCx9KeTFwgwxtujpkLFiAvUH0GYUq3U/HRoS389YZiaP6sTM8fzjjp5E+IUlfmo5fqeWhQ4sDriaoa+oO8f9hsSgPPC0l4v2zykTzHnBQQIQxlvECwEZzBY+pmsmfgGwpZLfvr1wcl2w8Png== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(3002001)(10201501046)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:CY4PR07MB3462; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3462; X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39860400002)(366004)(39380400002)(199004)(189003)(386003)(5009440100003)(305945005)(7736002)(6506007)(2616005)(316002)(72206003)(68736007)(6512007)(51416003)(486005)(476003)(50466002)(4326008)(478600001)(53936002)(76176011)(8676002)(16586007)(97736004)(47776003)(11346002)(48376002)(486005)(107886003)(53416004)(66066001)(52116002)(6486002)(956004)(6116002)(42882007)(50226002)(2906002)(1857600001)(8936002)(16526019)(1076002)(81166006)(81156014)(3846002)(6666003)(5660300001)(106356001)(36756003)(105586002)(186003)(25786009)(26005)(69596002)(446003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3462; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3462; 23:Gzy5vlSWOV6hpzXoSzNg+SXgDIG73WK7nC4yLKY1h?= =?us-ascii?Q?ZhUeAXOJaq21ZWX59Xdz5jcYy3RmJtFDJ+Bvm92TvbVJIN7prFojc9wUhbuX?= =?us-ascii?Q?kybG4aScIpJnWQbvYoyhmK+tfHmFF9rx4yyoDkiDfy/PQLTn941o5WujAxU2?= =?us-ascii?Q?hE61jJanlW80oDZmAs+kGoxIjM6dLCuFGQD2JWRmmr7yvXmNs7ruFc5aEOK6?= =?us-ascii?Q?YCdewU5vzSlt4z6+AdVAoDYDq9P7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2Q/AfszsTj4DrXE+54rubbkJaeudkDlvKJVyagrdOCEvmr9ewHEN96WOdxAk2o4o8zpqd7TAHE9PbdPW4LqWlNeAsR4Iofc3d6CXKWicTdEKzz4MLAxzpR2b7y+PCS5iPYdS8RCU=; 24:iZTPAL16t/CUHSe5+nehKQtBcZpxVTE97N3VLmq4gT0xy+ywMhn3BKo+RUIIajSpWFTEgq0akYEGUE5jyhAGneOz0uwNTLpUsoXflvT6lrI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 7:LNyPKACPDpIVlQrg8d3YZgFQbVBaKv5v269HLRw/9+ibrdLEd7h74fBNLNihWA2XGnu7PCBBULa1YL20Qv1GlXSQ1NqVCwbwcwfRJ9xmWfDLs6aYCq0vQUZHPH2dw3rVImRXLDzB2eMTw7Mp2i37ZuhSlU3DbOw1Du7P9EMyEEr4YlL88kzTfpXtYEFR0rGUZO/tQs1t68bRrJCNWJpu97AATI8+2vdSB93rFarDJ265KFmauHCpALPNnMjm0Jo0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2018 10:21:36.7049 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ca78c842-f237-464d-c18a-08d5994caf9c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3462 Subject: [dpdk-dev] [PATCH v2] build: meson set toolchain info during config init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 10:21:40 -0000 Meson set RTE_TOOLCHAIN to clang/gcc and set RTE_TOOLCHAIN_CLANG/GCC to 1 during initilizing dpdk_conf so that it can be used by both x86 and arm. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Use get_id for identifying compiler instead of checking for compiler defines manually.(Bruce) config/arm/meson.build | 9 --------- config/meson.build | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index c1ab6ed01..e9c9eb1a5 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -83,15 +83,6 @@ impl_0x69 = ['Intel', flags_generic, machine_args_generic] impl_dpaa = ['NXP DPAA', flags_dpaa, machine_args_generic] impl_dpaa2 = ['NXP DPAA2', flags_dpaa2, machine_args_generic] - -if cc.get_define('__clang__') != '' - dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'clang') - dpdk_conf.set('RTE_TOOLCHAIN_CLANG', 1) -else - dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'gcc') - dpdk_conf.set('RTE_TOOLCHAIN_GCC', 1) -endif - dpdk_conf.set('RTE_FORCE_INTRINSICS', 1) if cc.sizeof('void *') != 8 diff --git a/config/meson.build b/config/meson.build index f8c67578d..b8f953b54 100644 --- a/config/meson.build +++ b/config/meson.build @@ -11,6 +11,14 @@ dpdk_conf.set('RTE_MACHINE', machine) machine_args = [] machine_args += '-march=' + machine +if cc.get_id() == 'clang' + dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'clang') + dpdk_conf.set('RTE_TOOLCHAIN_CLANG', 1) +elif cc.get_id() == 'gcc' + dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'gcc') + dpdk_conf.set('RTE_TOOLCHAIN_GCC', 1) +endif + # use pthreads add_project_link_arguments('-pthread', language: 'c') dpdk_extra_ldflags += '-pthread' -- 2.16.3