Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1945114ybb; Thu, 2 Apr 2020 10:10:17 -0700 (PDT) X-Google-Smtp-Source: APiQypKMf5QVy9qUiItlQM09sv7zRjsy51T60JxS9qcjzGa2epyT++zjq/Ipnj/z2d1Y1zirv97i X-Received: by 2002:aca:4843:: with SMTP id v64mr15709oia.13.1585847416784; Thu, 02 Apr 2020 10:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585847416; cv=none; d=google.com; s=arc-20160816; b=So9w9+/x6YW9wVRcUaz918C70I8pTcA+MtPtKb3EvWsh/rQZH7ZGq/nGJjI3hsEZ+Z FiLe1FUtbnOHeeabHX69HGhD/8RJtR9SutbbiqPJP9YpXGiwerT+hX7lDEvJwzwxa6ty arQeQ6OYVOHqIHSP9fkcgZ0Vm8YQXBlnbhQWnxhzjLt0SRUs8M3VQx168Wlk1tuNuK+H 2HDjGVaLBfUm9R1MqODIp/Gvcj3XbHYYOW6XvivLn2cS8Eiwuiuon7jrIG/rf8u0zmY6 a1BDffAfClIV9lIzJXB++b3Vv9hnOtx2XLWNQASlV7wKKk6i73RLPLbvovbQTUrFhHNv k+AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=7OcTobGkjHwoSGKSzSqbMXwOD8hf/Cu5Rv1KanxRG6M=; b=WIgyW4u65l7ZLwk5uauoXJF7NuDEymhL98MDtY1tGiiua7u2Dqj/pGJaHo9thcPgQL XrZFYSN/fH+k3ahsInzJu/2V6EytRXzSfflRokZvLIcqQDOWz7vuVD7XdcB1cfrMi0x4 GnlPEEL7f80wsKN/aarxS26sqf81AJwhXFeY9z1MxV1y3Dp7LM4uryY8x2lTYkp7Ta3U fhUDpmQbCpZGPtcmNHQ1bxX7evTHICv1hOt2/rGU1ZX0i1D8reK7x4IHNj9v/x7ptXov FNBgkMBmn7JTUshyAeZSb2bfVBj2W8h3MiRDwUX68secLmXY6wuboaOtkx0oGjUn/nKg U1RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=r4dvWeRr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21si3170050otk.277.2020.04.02.10.10.03; Thu, 02 Apr 2020 10:10:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=r4dvWeRr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389930AbgDBQyz (ORCPT + 99 others); Thu, 2 Apr 2020 12:54:55 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:30687 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388689AbgDBQyz (ORCPT ); Thu, 2 Apr 2020 12:54:55 -0400 Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 032GsoDX019343; Fri, 3 Apr 2020 01:54:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 032GsoDX019343 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1585846491; bh=7OcTobGkjHwoSGKSzSqbMXwOD8hf/Cu5Rv1KanxRG6M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=r4dvWeRrqrEB5tuF7dbbTjfXwOBc4B5OqV2ZPUPeAl+mhwtYPJUL8PnVSL/fpaJb9 B4gJcNEcacVpLBdF2hfJCURRyOTrd9bLE1MAdoDbWE2O6T/SikbSHFYe1ydjt63Ip2 lF8+FRGvnGQtCwUs0nCm5jaNz3Z3rbu/EyEaCk9Eg48y1LlpvLx0rxnjgVOWIlFkRn FemuFRhRPB/S31C85Qmd/8nj4VZMjlvH2fyI5G3lRJFSeDeR72o7CHPB8xcW7zEk3T DRcVV3JsuDhL03rb0mtlBk2QI0SSycmuuISBREBl9Iae9m3wG84iad2s6FygSj7odO w74U/Cm2Sn1Bw== X-Nifty-SrcIP: [209.85.217.54] Received: by mail-vs1-f54.google.com with SMTP id z125so2783391vsb.13; Thu, 02 Apr 2020 09:54:50 -0700 (PDT) X-Gm-Message-State: AGi0Puaw146oiZ8o7P0evT4fEm2vW0nYa6YfHozBl0qd1Jy6z/fQ2S7T 24cL3kPCrCETgQhIHwd/gbVxm7MQBSsAGTRhXH4= X-Received: by 2002:a67:33cb:: with SMTP id z194mr3145292vsz.155.1585846489469; Thu, 02 Apr 2020 09:54:49 -0700 (PDT) MIME-Version: 1.0 References: <20200317215515.226917-1-ndesaulniers@google.com> <20200327224246.GA12350@ubuntu-m2-xlarge-x86> <20200330190312.GA32257@ubuntu-m2-xlarge-x86> <20200402163957.lqgr3tpc4z7ish5e@google.com> In-Reply-To: <20200402163957.lqgr3tpc4z7ish5e@google.com> From: Masahiro Yamada Date: Fri, 3 Apr 2020 01:54:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Makefile.llvm: simplify LLVM build To: Fangrui Song Cc: "'Nick Desaulniers' via Clang Built Linux" , Nathan Chancellor , Linux Kbuild mailing list , Linux Kernel Mailing List , Sandeep Patil Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 3, 2020 at 1:40 AM Fangrui Song wrote: > > > On 2020-04-01, 'Nick Desaulniers' via Clang Built Linux wrote: > >On Tue, Mar 31, 2020 at 11:11 PM Masahiro Yamada wrote: > >> > >> On Wed, Apr 1, 2020 at 3:39 AM Nick Desaulniers wrote: > >> > > >> > On Mon, Mar 30, 2020 at 11:25 PM Masahiro Yamada wrote: > >> > > > >> > > Having both LLVM_DIR and LLVM_SUFFIX seems verbose. > >> > > >> > I agree, so maybe just LLVM=y, and we can support both non-standard > >> > locations and debian suffixes via modifications to PATH. > >> > >> > >> > >> OK, so we will start with the boolean switch 'LLVM'. > >> > >> People can use PATH to cope with directory path and suffixes. > > > >Sounds good, we will modify our CI to use PATH modifications rather > >than suffixes. We can even do that before such a patch to Makefile > >exists. > > The proposed LLVM=1 + PATH scheme looks good to me. > > > There seems to be one issue. > OBJSIZE=llvm-objsize added in > commit fcf1b6a35c16ac500fa908a4022238e5d666eabf "Documentation/llvm: add documentation on building w/ Clang/LLVM" > is wrong. > > The tool is named llvm-size. OBJSIZE is only used once: > > arch/s390/scripts/Makefile.chkbss > 14: if ! $(OBJSIZE) --common $< | $(AWK) 'END { if ($$3) exit 1 }'; then \ Good catch. Could you send a patch, please? -- Best Regards Masahiro Yamada