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 C3A3CA0032; Fri, 12 Nov 2021 22:48:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3714B40E25; Fri, 12 Nov 2021 22:48:39 +0100 (CET) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by mails.dpdk.org (Postfix) with ESMTP id 24A8640692 for ; Fri, 12 Nov 2021 22:48:38 +0100 (CET) Received: by mail-lj1-f173.google.com with SMTP id 1so21134998ljv.2 for ; Fri, 12 Nov 2021 13:48:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2MOjNWpyfCBL1aZSTi/0VSg38KLFODSfkCm6bNftTtU=; b=EjAg4YL+bctIOsRLV1aRzw2cLfjpZaANVXbh8mGcPqWWfomJhx4KirAy9qVjtJ1QaP eQab9FsXrJtdpQ1yjRop4ATd3Twqpihu//tk/Ur3SXsPyBlCIm9gIQra/KTxotrAr3cG 06OL62gFLOp+a5fKyJ55W/vHWETiN8Mmf5On1e9KcFm+1QLX9+LARlVLUgz1HuwmilRL pQxsrZZgs4lNKKj2quLZXS/xkht7vu4HhEZXXSp3ZKU73e+MpTDCFS7wtCCO9oyUZe2k CxKYv6CS9YMKz9/m5ku8ekQQlyCb+b0nNwVy4dYdFdPrMSTntvSjCyUCjvmVdJ7bcGfG LXWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2MOjNWpyfCBL1aZSTi/0VSg38KLFODSfkCm6bNftTtU=; b=rZmIdwe25g+436UX3LiYjdmAUtcJkv52r4LIUdNVXY3g8mSXbDJd5zAFh9r3zslz50 XoOHhSq1EBOZbB3vEgQY5zNzUri7k4BxEDhvP8p9oKZl5EasfosdPPFREVzUeN0AAXEb 5XtORASvbZOgOMNu+477E5mYmnzlR706HAJO3PdxP17LnLymkIO9LW67fJShCFSHOUIj X+0ILi6KX1CGpS37gGc86+dYb8SrtYur/FfNoj7CT0YDewGMYIZRhUQ0DMID7TztZNd5 WN7yBDonAPB8tsEs6EkUDktjC3/nWpjTWjvHIjFenC6AVsgqrJY8jWAt1dspx0XEjLsb MIVw== X-Gm-Message-State: AOAM533p08x5fbqAlYovsfkmJQZsqj8k2WI6DyQrwzvxB2jIgUH/GGQw 74EvVLKYdVfrszuUexhhW7q6Btx/bdU= X-Google-Smtp-Source: ABdhPJwyDTfcN8ubvpG2GA7wyjKks17gLXlA1FI2vGmtxwDIBaurcM0oyy1gcK5eLJZdnbquBUCgWQ== X-Received: by 2002:a05:651c:1211:: with SMTP id i17mr18167328lja.340.1636753717506; Fri, 12 Nov 2021 13:48:37 -0800 (PST) Received: from sovereign.. (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id l5sm647917ljh.66.2021.11.12.13.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 13:48:37 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk Subject: [PATCH 0/3] config/x86: improve AVX512 availability check Date: Sat, 13 Nov 2021 00:48:23 +0300 Message-Id: <20211112214826.333853-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The goal of this series is to enable cross-compilation of Windows binaries from Linux using MinGW with Meson 0.49 used in CI. It also aims to reduce difference between Unix and Windows build code. AVX512 was switched off for MinGW cross builds, but unfortunately in a way that is not usable with meson 0.49. Also, c_args was used instead of machine_args for -mno-avx512f. After patch 3/3, AVX512 support for MinGW cross builds is configured exactly the same way as for Unix builds. This required rewriting a Unix-specific script in patch 2/3. Patch 1/3 skips check of GNU binutils when LLVM suite is used: it is useful in general [1], and also simplifies patch 2/3. [1]: https://inbox.dpdk.org/dev/20211112160837.131994aa@sovereign Dmitry Kozlyuk (3): config/x86: skip GNU binutils bug check for LLVM buildtools: make AVX512 check script portable config/x86: fix MinGW cross build with meson 0.49 buildtools/binutils-avx512-check.py | 21 +++++++++++++++++++++ buildtools/binutils-avx512-check.sh | 16 ---------------- buildtools/meson.build | 4 +++- config/x86/cross-mingw | 4 +--- config/x86/meson.build | 7 ++++--- lib/acl/meson.build | 2 +- lib/fib/meson.build | 2 +- 7 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 buildtools/binutils-avx512-check.py delete mode 100755 buildtools/binutils-avx512-check.sh -- 2.29.3