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 666C6A052A; Wed, 27 Jan 2021 15:47:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CEE0140E2A; Wed, 27 Jan 2021 15:47:11 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id C2C7B140E14 for ; Wed, 27 Jan 2021 15:47:06 +0100 (CET) IronPort-SDR: bURs1ADkaZxyUaUpXqPp0QXyZ7o37C9R/BXutLUUb9wMB/VwRj1VsMWiHvL3NLRrV6g3/yBD8Z ifzT8712ldyA== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="159248226" X-IronPort-AV: E=Sophos;i="5.79,379,1602572400"; d="scan'208";a="159248226" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 06:47:06 -0800 IronPort-SDR: pRAcT90Q+2WLEQfgIrT4JKx34evHsJHihiQQvt0MC+Tlsndkbtokx2lYMaBqSp7MgzQmiHOSJI IbHgoY3+0AUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,379,1602572400"; d="scan'208";a="388331002" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by orsmga008.jf.intel.com with ESMTP; 27 Jan 2021 06:47:04 -0800 From: Leyi Rong To: bruce.richardson@intel.com, 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 22:27:06 +0800 Message-Id: <20210127142706.6290-3-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127142706.6290-1-leyi.rong@intel.com> References: <20210126153819.63625-1-leyi.rong@intel.com> <20210127142706.6290-1-leyi.rong@intel.com> Subject: [dpdk-dev] [PATCH v3 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. Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index c0acdf4fd4..f5fc5a17e0 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -54,6 +54,10 @@ if arch_subdir == 'x86' cc.has_argument('-mavx512f') and cc.has_argument('-mavx512bw')) + if is_windows and cc.get_id() != 'clang' + i40e_avx512_cc_support = false + endif + if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true cflags += ['-DCC_AVX512_SUPPORT'] avx512_args = [cflags, '-mavx512f', '-mavx512bw'] -- 2.17.1