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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E5B6C636C9 for ; Tue, 20 Jul 2021 23:23:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0EB4F60FF2 for ; Tue, 20 Jul 2021 23:23:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234314AbhGTWnJ (ORCPT ); Tue, 20 Jul 2021 18:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235067AbhGTWmj (ORCPT ); Tue, 20 Jul 2021 18:42:39 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19EFEC061794 for ; Tue, 20 Jul 2021 16:23:01 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 8so425530lfp.9 for ; Tue, 20 Jul 2021 16:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9UMNLgXsjce3FCFX2HrFE+hubu4C2zganX9QHeWUC5k=; b=VOZraKhMzkQJNMDtxTEw3IeOAaj9jfYkfX3AnUFI4sPxh13Nh6QzQM41dGtfrdsCR3 m7YVPeQkOsnpWDR5Ovi2nsMuKFzaAZ6qlJvuydFhPSusBHUx3//IXrR3qFljv1apq0Uc EOxNaqYELtMu/scDTMBvpmdmbWQ7KWxq1dZVE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9UMNLgXsjce3FCFX2HrFE+hubu4C2zganX9QHeWUC5k=; b=imp6F1QACdSkNR3jRWcY7PvnD4/PGjaJJMHXM80m6ChnwVDxWledtbFnd4Czfq3ixO BriH2Z9GQK/u+qUtI/ISwB5FAfkN0EgPiGzLPDT3B7ZAUeNY+KIiEYaeqqNS+6kbH/0B hB6zz+iyewPpFv43Vn2ljOsS85m9mxIHTv7XoFHYEI0OeCGu2i5FsuhAUWR+2fQpFonf 9Ho84xjD+Szf97ZlP1kbKnNkbJ1/mwaPrceo01aVcnkA+g1taRPsyF33yTT6aQNBttW2 yTmxoJ6mGEFrNBMoRRS+r0cxSfzw0HDhStCflviSijljUZoBT1xOYmAO2OAlermQjaBp f8Hg== X-Gm-Message-State: AOAM531a1K7A75IvP9jYxCLvVN8eARFoHBh66ZVvlNvGBGqSXODPUM+4 B4ET1d7CD7/A4lr6FLu0j9zNC+R7GjZOSb6q X-Google-Smtp-Source: ABdhPJxo4b/pdp/mEzlkcnWfwHUFGSH/6fTW9aSQJ3A0BU1sGuXMl3Ug2mIwqG/qPVKNkNW073tZDw== X-Received: by 2002:a05:6512:15a6:: with SMTP id bp38mr24304640lfb.580.1626823379299; Tue, 20 Jul 2021 16:22:59 -0700 (PDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id x185sm1624993lff.145.2021.07.20.16.22.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jul 2021 16:22:58 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id s13so403545lfi.12 for ; Tue, 20 Jul 2021 16:22:58 -0700 (PDT) X-Received: by 2002:a05:6512:404:: with SMTP id u4mr23082408lfk.40.1626823377989; Tue, 20 Jul 2021 16:22:57 -0700 (PDT) MIME-Version: 1.0 References: <20210708232522.3118208-1-ndesaulniers@google.com> <20210708232522.3118208-3-ndesaulniers@google.com> In-Reply-To: From: Linus Torvalds Date: Tue, 20 Jul 2021 16:22:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] Makefile: infer CROSS_COMPILE from SRCARCH for LLVM=1 LLVM_IAS=1 To: Nick Desaulniers Cc: Masahiro Yamada , Miguel Ojeda , Fangrui Song , Michal Marek , Arnd Bergmann , Linux Kernel Mailing List , Linux Kbuild mailing list , clang-built-linux , Geert Uytterhoeven , Christoph Hellwig , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 4:19 PM Linus Torvalds wrote: > > There are probably better ways to do this Oh. In particular, it probably should use a '?=' in order to allow overriding, and not expanding that $(shell git config..) thing every time $(CC) is used. Or something. I didn't really think about those things very much. Think of that patch - as so many of my patches - as a starting point and a "how about something like this". Linus