From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 72954A052A; Wed, 27 Jan 2021 10:09:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3B05140D9C; Wed, 27 Jan 2021 10:09:31 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id E0717140D6F for ; Wed, 27 Jan 2021 10:09:28 +0100 (CET) IronPort-SDR: NPoEYHScqV+FRPZJj2RBUuuNCKF/wpz2UVIifyZDQfLVxdniOPv+My6olaOmV4LKre5lI5PfCt s+S29u2PXveA== X-IronPort-AV: E=McAfee;i="6000,8403,9876"; a="176530969" X-IronPort-AV: E=Sophos;i="5.79,378,1602572400"; d="scan'208";a="176530969" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 01:09:28 -0800 IronPort-SDR: dhYx3ZRw9kRQ+OjAqbSi793xFX9Z+yQUhcLqz/z/TjyP7sc+AeU1X1O7zhTz7G9mVwhjXTcGSg 7UGnfsFTpSuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,378,1602572400"; d="scan'208";a="473096196" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by fmsmga001.fm.intel.com with ESMTP; 27 Jan 2021 01:09:26 -0800 From: Leyi Rong To: talshn@nvidia.com, qi.z.zhang@intel.com, pallavi.kadam@intel.com, ferruh.yigit@intel.com, ranjit.menon@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Leyi Rong Date: Wed, 27 Jan 2021 16:47:45 +0800 Message-Id: <20210127084745.73116-3-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127084745.73116-1-leyi.rong@intel.com> References: <20210126153819.63625-1-leyi.rong@intel.com> <20210127084745.73116-1-leyi.rong@intel.com> Subject: [dpdk-dev] [PATCH v2 2/2] net/i40e: fix mingw build error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Disable i40e avx512 code path for windows build to avoid the mingw build error. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index c0acdf4fd4..34c9dfa681 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -54,19 +54,21 @@ if arch_subdir == 'x86' cc.has_argument('-mavx512f') and cc.has_argument('-mavx512bw')) - if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true - cflags += ['-DCC_AVX512_SUPPORT'] - avx512_args = [cflags, '-mavx512f', '-mavx512bw'] - if cc.has_argument('-march=skylake-avx512') - avx512_args += '-march=skylake-avx512' + if not is_windows or cc.get_id() == 'clang' + if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true + cflags += ['-DCC_AVX512_SUPPORT'] + avx512_args = [cflags, '-mavx512f', '-mavx512bw'] + if cc.has_argument('-march=skylake-avx512') + avx512_args += '-march=skylake-avx512' + endif + i40e_avx512_lib = static_library('i40e_avx512_lib', + 'i40e_rxtx_vec_avx512.c', + dependencies: [static_rte_ethdev, + static_rte_kvargs, static_rte_hash], + include_directories: includes, + c_args: avx512_args) + objs += i40e_avx512_lib.extract_objects('i40e_rxtx_vec_avx512.c') endif - i40e_avx512_lib = static_library('i40e_avx512_lib', - 'i40e_rxtx_vec_avx512.c', - dependencies: [static_rte_ethdev, - static_rte_kvargs, static_rte_hash], - include_directories: includes, - c_args: avx512_args) - objs += i40e_avx512_lib.extract_objects('i40e_rxtx_vec_avx512.c') endif elif arch_subdir == 'ppc' sources += files('i40e_rxtx_vec_altivec.c') -- 2.17.1