From patchwork Fri Oct 8 12:25:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 515564 Delivered-To: patch@linaro.org Received: by 2002:adf:fbc8:0:0:0:0:0 with SMTP id d8csp2861237wrs; Fri, 8 Oct 2021 05:28:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIy12I0CS/j6eim6xjUy5xHiB8um81PF3dq1wBGUpYqFgr3Tq/1fh9ZO8YNj8A8qljxFYK X-Received: by 2002:ab0:784f:: with SMTP id y15mr2296101uaq.126.1633696105755; Fri, 08 Oct 2021 05:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633696105; cv=none; d=google.com; s=arc-20160816; b=iSQFHLbpakosHnYL+wPngXmqBQQmlEOtpjlAH92hkAMZdsU4Njc3i8gvmKdq4DpY/m CK4++3jc1jLhRdyOKuoynPgJ6luG3j13c6LHUoqYI3TwV+aIy1AplkrzHFizw3bjoqr/ ZpRH2SGrWN02z8E1CDaRbyGYCJYkbun3rGBdySpnj1Hh6DnVoJy1eoXwtAM3CjeTg4O4 x8Pk434OfyVevMH2VqCxmZjB0EyBqj7PeCAwZqsM8Z9f1SulF6k8xsN8/lqsydPMCB6E b416i9QgTpSvFdUUtWj55jgcb39kzGGaZxDT7y9auBO0wC5Y4pFbac4BikN/hNw2KTDh 5hzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=lMmeyhB+N7zk91H6V9iKKmYMPFJOsMjTkfaY9u1DH2A=; b=Ud16Z9s9V7814d/WPr6MNaBVhx8VWveqKDbFo7UWImOOLvvXsAMEWmBcA0d/VN9Xd7 dH17paiEWIJpWUFO74O/s8Lu4hDaBaN2leS02Eh+Kf+XuoxHK8yWpezs8VjRRhk6KK0g tg2S68VOsMC6RbimwtFSLX4nRqP8fX++BjGdozP6gQLLv2Oy/kBGc8OggHbsP6R8S0QA mFkazozeWZzLIdYr4BNsO/myrjr3pGh4vGhxCQZkaiVFiHYApZu/t8jM4fDaCqnDA+yP kC0rMydp4HKCsg9CNbCt+RpqSnY2FBGzO5bAj44YN2scD4SEgLPN44S6NN9J8xGRRIGd 8dcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="hX/HcBVx"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a11si2036988vsl.429.2021.10.08.05.28.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Oct 2021 05:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="hX/HcBVx"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYozA-0002zB-2j for patch@linaro.org; Fri, 08 Oct 2021 08:28:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYows-0002wU-IC for qemu-devel@nongnu.org; Fri, 08 Oct 2021 08:26:02 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:34657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYowq-0006rH-Ne for qemu-devel@nongnu.org; Fri, 08 Oct 2021 08:26:02 -0400 Received: by mail-wr1-x432.google.com with SMTP id t8so29476790wri.1 for ; Fri, 08 Oct 2021 05:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lMmeyhB+N7zk91H6V9iKKmYMPFJOsMjTkfaY9u1DH2A=; b=hX/HcBVx0wcPDBG0vo4HxTrxmMHLZUkbHR3WeTQZR+3b9R4Zeoo9qI6NdfceyDA2DA aC/NkgHfcgNGadlYmsCoPT4/VjvXj9WS/ZxKCSC/t0n0PkIswRR8gBUmtCM0epnr2Ow6 l9ZPASkxXHJ5xDtuhphcXOQhNjvroQ8jVECKj5xxIwnoTpsapZCY2mRcx9qnTGbtWXew 9z2+y60Vdp3gHHjF+f8UmhOBSEdLpsT7E/MwFPW998WU/WcZMkPyIUvoXP3CoCIpjE/f Qlli2C1e71i/QRc0bU9W9l3Sm4kXkS5fzerWIlgMfl2OKeIWEIaUJg+9LcGzxDaZY1SS sLMg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lMmeyhB+N7zk91H6V9iKKmYMPFJOsMjTkfaY9u1DH2A=; b=6WEeiKdX1nesfOyiDcJ7TQnfcDA1ZIevXiR3duFK3vECoWiA6Zc8sWKteMhgz+po0y QSFlK//gSCeLHgmk3ObTNER4qqUlc/DuWS/UKw/RhxY7GBJeTZTtpoZDfLsasv3FIocq sPPCXS/UtTCX31rmFfzh8TsQNfyFaa5usYbtEC8/kMMYaWhZQAjEFlBRzK00tEDQmmsI ZZM9it3qqmojtIPOmZv8x3SUn25iaw4geTvXglwuLPl//Fj4QI4bDfhu75DJpyOtozHj n5zw524gqE/DQvzXHCvU4NAQPu4tMD5zAVXgS2uK37abJ2jvBTczd+HJFB0IyHOcxio5 pV9Q== X-Gm-Message-State: AOAM531kd+rccqwU5dIZtK0GCEkACHIVyA0++WMRQSY5t3bJJwH5OSnD rREwDp5FWObuf/BMA1RrM+7hTg== X-Received: by 2002:adf:aa99:: with SMTP id h25mr3694648wrc.271.1633695957892; Fri, 08 Oct 2021 05:25:57 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l16sm2592886wmj.33.2021.10.08.05.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 05:25:57 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 444391FF98; Fri, 8 Oct 2021 13:25:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org Subject: [PULL 01/12] configure: don't override the selected host test compiler if defined Date: Fri, 8 Oct 2021 13:25:45 +0100 Message-Id: <20211008122556.757252-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211008122556.757252-1-alex.bennee@linaro.org> References: <20211008122556.757252-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Warner Losh Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There are not many cases you would want to do this but one is if you want to use a test friendly compiler like gcc instead of a system compiler like clang. Either way we should honour the users choice if they have made it. Signed-off-by: Alex Bennée Cc: Warner Losh Reviewed-by: Warner Losh Message-Id: <20210917162332.3511179-2-alex.bennee@linaro.org> -- 2.30.2 diff --git a/configure b/configure index 877bf3d76a..e2750810e2 100755 --- a/configure +++ b/configure @@ -1686,8 +1686,10 @@ case "$cpu" in # No special flags required for other host CPUs esac -eval "cross_cc_${cpu}=\$cc" -cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" +if eval test -z "\${cross_cc_$cpu}"; then + eval "cross_cc_${cpu}=\$cc" + cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" +fi # For user-mode emulation the host arch has to be one we explicitly # support, even if we're using TCI.