Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1950038rdg; Sun, 13 Aug 2023 03:05:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUTNYC333NLYMPuWCZDYfauTvKUlkB9NBBaBxXbzky4G72RdsqudTXm/1Mdi2yM+KJwCW3 X-Received: by 2002:a05:6a00:b4a:b0:687:1be4:46d9 with SMTP id p10-20020a056a000b4a00b006871be446d9mr6547199pfo.1.1691921106120; Sun, 13 Aug 2023 03:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691921106; cv=none; d=google.com; s=arc-20160816; b=tsQirOhRrVVTqy30v8ODqCuL9HkROnbIgO/0te6jipeDYEP0Ee/dT0KCRjfFfk2k18 dlk7sTlYkMfKvAKKw7JMYzl1K3vqpA6OD2vKG+HoMt1W5vCXoln4RiVgbRjmGNAk3w7i D8Gky4gnMmJgRG6/CQhWDb6SCGjjdZlP+5VT4GT/BKYVdYSZHXW85nNrwq9nCv02b7dw v6Cq4byiw9q5H1HfzpHuESmG1UVdiYw+pEmFgEXvOus1BbpoF1Q5EwA1fXBfuK/6SSQA WCMz9z7Td68S+96WKr945Zv5xRNvKM4HCBo/xajYvQQ486axv1fC584bGD67TMcvsEku JEvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LGVUjnCgbJCbTOhvc6SFYnQ0DxWC4pE9fi7AfggN2X0=; fh=qdjc2CdRM1znN/0ctZ1+pRmMu16xDIDDQOW43BlOBK8=; b=cDR2cp/v1LhXO7ZuFx86ho811swny6unvyJpasNp/nevYxNhVvedK2hdV0/RXNbuq4 NpI4651BFLr5Z/4+aXyjr8ET7dXeneFqCLbJaMHBfmnZhQlO3r2W+A7sb625IO6l3+XJ lyoDTfoSHweurHf7TB2utYMW3yPtxB6oHc91zvOGtZ4RmURXWe0IgBhwtpKzV0EltMNr AuKKGaviEsJkqPIFnfDT9ZL9yoLPfIvdr1c5Zv3prs2dCuz5m3QrSXvFqlaECBzz5sQu vxsEvKPVVWAgNum+HUIfSNAODKeoN+rQFUQ8MKqWF0ZrCnNzDCc2LQ3f4SX0v5flwbja tpzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i68-20020a639d47000000b0055c8ad484a1si6185468pgd.125.2023.08.13.03.04.53; Sun, 13 Aug 2023 03:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbjHMJTt (ORCPT + 99 others); Sun, 13 Aug 2023 05:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHMJTs (ORCPT ); Sun, 13 Aug 2023 05:19:48 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6AEA2170C; Sun, 13 Aug 2023 02:19:51 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 37D9Jins008746; Sun, 13 Aug 2023 11:19:44 +0200 Date: Sun, 13 Aug 2023 11:19:44 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: Re: [PATCH v2 3/7] selftests/nolibc: libc-test: use HOSTCC instead of CC Message-ID: <20230813091944.GH8237@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 12, 2023 at 04:30:25AM +0800, Zhangjin Wu wrote: > libc-test is mainly added to compare the behavior of nolibc to the > system libc, it is meaningless and error-prone with cross compiling. > > Let's use HOSTCC instead of CC to avoid wrongly use cross compiler when > CROSS_COMPILE is passed or customized. Indeed. This one is actually a fix for this one, I'll pick it separately as it's independent on this series: 85a0b029a1ce ("selftests/nolibc: add run-libc-test target") Thanks, Willy