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 040FBE7D27D for ; Tue, 26 Sep 2023 10:45:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234450AbjIZKps (ORCPT ); Tue, 26 Sep 2023 06:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234396AbjIZKpq (ORCPT ); Tue, 26 Sep 2023 06:45:46 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7784311F for ; Tue, 26 Sep 2023 03:45:39 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-59f4f2b6de8so120841917b3.1 for ; Tue, 26 Sep 2023 03:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695725138; x=1696329938; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ZI+eNbg0qpdq3vkkOFQPywNCLJtuGTIXCWjIkj4E0SQ=; b=QoVKALhyKW/p0vPNr9KgtrV33qk3V2inFxxclL0UsckIDxx8cL4wFaxhcVkjzDnL/T +lVTYKAVH7R+9qi+6PaL1USfB2VZDInwJQMuYNtV6smZFFGowkYa714ol+zyEe4zWOQn njo58A+VPuQXw3qhWO9aZRKdEiYf2ULJvOs9lvoNg7d5eSxdCA/sR8jdhZXJ4bgv7wcI egB8t+UXu3G/rSBOJtu4qNHtpON5P8xwWoLGOd5MPhW0R1Of2knip+Ek5vSWGig3Jr7q uuUlMvy1rWc5BjCEFGajgsEBEmUfOGYYzYphETo4mHNx/4Dx2/io0teMh3kAOJfiJ1d4 lOEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695725138; x=1696329938; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZI+eNbg0qpdq3vkkOFQPywNCLJtuGTIXCWjIkj4E0SQ=; b=a2TmGDCw6DYSho285oeTRMdNR1RWV8lyEP7dZzk+y7FGYQik2aoBgu8H48QWtGA2vN JMvqB0jinUtoGsvdIDVDWdSucmZ1h/B6WScNkFMwYkrN7qNXa/jpLve/pJ0I0G2vbm8W rWk4rZTj76Ssnv1WLiwXGVxk2l8KxDNYmsqVxvOfak7iV93lNgfQG4cSWTSCiiK773YZ jyYkJSC7IVVLh4IZ1i/GMYc+zRvmvDfRle+PgdVMQkLnj9fvgwdHEDab/I4sBw5wx6m0 Ydfy3xvOA+QybCvDDgx2Mx8kxTXxH/ibIvZAyVyMNRX8jxr2QyWGYfafAwb7BrWVuLe/ qOWA== X-Gm-Message-State: AOJu0YwFppWagB3+8ouamWfPMKJkY2DeAuXO+z+S9v1EwRadX4Rq8S5u tuLYUlqzKvxdIvmOl7JnpVJIcK20ayZq4so= X-Google-Smtp-Source: AGHT+IGIcPd49DrH+Dfh7mAReV5rlgiSMBoqAdy5TxgYzI4sEGmEMbcZtmWkPKIs3cuVkncvuJ25WaosBw7tTpg= X-Received: from aliceryhl.c.googlers.com ([fda3:e722:ac3:cc00:31:98fb:c0a8:6c8]) (user=aliceryhl job=sendgmr) by 2002:a81:eb12:0:b0:59f:3cde:b33a with SMTP id n18-20020a81eb12000000b0059f3cdeb33amr116549ywm.6.1695725138575; Tue, 26 Sep 2023 03:45:38 -0700 (PDT) Date: Tue, 26 Sep 2023 10:45:34 +0000 In-Reply-To: <20230918234412.363087-2-mmaurer@google.com> Mime-Version: 1.0 References: <20230918234412.363087-2-mmaurer@google.com> X-Mailer: git-send-email 2.42.0.515.g380fc7ccd1-goog Message-ID: <20230926104534.2227995-1-aliceryhl@google.com> Subject: Re: [PATCH v2] rust: Respect HOSTCC when linking for host From: Alice Ryhl To: mmaurer@google.com Cc: a.hindborg@samsung.com, alex.gaynor@gmail.com, aliceryhl@google.com, benno.lossin@proton.me, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, gary@garyguo.net, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, masahiroy@kernel.org, nathan@kernel.org, ndesaulniers@google.com, nicolas@fjasle.eu, ojeda@kernel.org, rust-for-linux@vger.kernel.org, wedsonaf@gmail.com Content-Type: text/plain; charset="utf-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Maurer writes: > Currently, rustc defaults to invoking `cc`, even if `HOSTCC` is defined, > resulting in build failures in hermetic environments where `cc` does not > exist. This includes both hostprogs and proc-macros. > > Since we are setting the linker to `HOSTCC`, we set the linker flavor to > `gcc` explicitly. > > Signed-off-by: Matthew Maurer Tested-by: Alice Ryhl