From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4929CCD13D1 for ; Sun, 17 Sep 2023 02:51:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233524AbjIQCup (ORCPT ); Sat, 16 Sep 2023 22:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbjIQCu2 (ORCPT ); Sat, 16 Sep 2023 22:50:28 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 960F219A; Sat, 16 Sep 2023 19:50:22 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 38H2nnj8009853; Sun, 17 Sep 2023 04:49:49 +0200 Date: Sun, 17 Sep 2023 04:49:49 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Shuah Khan , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 1/4] selftests/nolibc: allow building i386 with multiarch compiler Message-ID: <20230917024949.GD9646@1wt.eu> References: <20230914-nolibc-syscall-nr-v1-0-e50df410da11@weissschuh.net> <20230914-nolibc-syscall-nr-v1-1-e50df410da11@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230914-nolibc-syscall-nr-v1-1-e50df410da11@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 14, 2023 at 06:01:17PM +0200, Thomas Weißschuh wrote: > When building with a multiarch-capable compiler, like those provided by > common distributions the -m32 argument is required to build 32bit code. > > Wrap it in cc-option in case the compiler is not multiarch-capable. I think it's a good idea. Zhangjin was also using a single compiler for both archs. > Signed-off-by: Thomas Weißschuh Acked-by: Willy Tarreau Willy