From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f194.google.com ([209.85.210.194]:38421 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389046AbgDBQkC (ORCPT ); Thu, 2 Apr 2020 12:40:02 -0400 Received: by mail-pf1-f194.google.com with SMTP id c21so2005298pfo.5 for ; Thu, 02 Apr 2020 09:40:02 -0700 (PDT) Date: Thu, 2 Apr 2020 09:39:57 -0700 From: Fangrui Song Subject: Re: [PATCH v2] Makefile.llvm: simplify LLVM build Message-ID: <20200402163957.lqgr3tpc4z7ish5e@google.com> References: <20200317215515.226917-1-ndesaulniers@google.com> <20200327224246.GA12350@ubuntu-m2-xlarge-x86> <20200330190312.GA32257@ubuntu-m2-xlarge-x86> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: 'Nick Desaulniers' via Clang Built Linux Cc: Masahiro Yamada , Nathan Chancellor , Linux Kbuild mailing list , Linux Kernel Mailing List , Sandeep Patil 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 \