Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1941172ybb; Thu, 2 Apr 2020 10:06:09 -0700 (PDT) X-Google-Smtp-Source: APiQypIbwMmxzlIwCwTNAWVjgNCG1PPxEZbq2jiZRT/iW/w4uHqD83EJas1Iypd+rXFb6Og8Osbl X-Received: by 2002:a05:6808:18b:: with SMTP id w11mr26408oic.94.1585847169398; Thu, 02 Apr 2020 10:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585847169; cv=none; d=google.com; s=arc-20160816; b=ThYQFnqUA8z0mCrj8ehFDwkcdctNe3RhPxuBMcp74fDGDjQSPyORTZfz9JJxrCeI8J OiDN8jfQdQgt/euHFCC9Vyyjyr5tlWKWEo3GSThGg9McjaVEnPtR7JwBLVhgq5vEk0sk bdGz0BUkpRowuy5N3DTQWCZeq/ABC5yyh1agY7sVUylM6OuKNGwfiPa80LK/9klzcVT8 ZUkXCG4h0Ker79Eex9Nha+R+cNNGHXCN3NtDpEXuPyhks+4xmeBK7/gz5PuidARnCIPe oWYYY5gemv3xhTheyZSmyuGiDEvKYa755YgczazikraVeKadtLlbMWk6GDc8GYW2kq78 Mu1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=P5P7+32EPNiTA9W/bPQnunX4XIHQIJgt5gQH7DdKhy0=; b=vLDkcS9Dd955CsE4KOJH349+ZghdQLiG5VOu9pdlqg+76CS6C4jL/+KftfrbqZLzBH XBLeezJSJK+TBGzfGcBzzRwMo67cgjHf78CPpuNp7Vvnel2YUW/NWyClwYLopZ4LwJO3 Ks15Nettf/RZ4jp/y+nYiA4wZlTKbsamFxCoA3ah8VsbUps/cCRs392IHo1hc+OK/c8T WAlepzERRRcNHQMiPLuKDlbnvyub91RV9IN19XvoOtMnCYYUNPNNbhPJqLRWcHPhSTI0 92vhpzjMeZtjzqmKNNAh0A9HjTJGbZgcLvkZJyBtR+312wMVas59vhuOwMMNHFI5wneB lJiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fH8o+GZD; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si502703otn.66.2020.04.02.10.05.55; Thu, 02 Apr 2020 10:06:09 -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=@google.com header.s=20161025 header.b=fH8o+GZD; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389874AbgDBQkD (ORCPT + 99 others); Thu, 2 Apr 2020 12:40:03 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34210 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389072AbgDBQkC (ORCPT ); Thu, 2 Apr 2020 12:40:02 -0400 Received: by mail-pf1-f196.google.com with SMTP id 23so2017942pfj.1 for ; Thu, 02 Apr 2020 09:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P5P7+32EPNiTA9W/bPQnunX4XIHQIJgt5gQH7DdKhy0=; b=fH8o+GZDZ1xdsVdHSi6MAupKO7i5SOOdhKbMy9EC42AcredyeAYuEr60QU+fttr6C7 M2hu1qmBT0E9kEN76oM60aZ/2lEdUGRNSJhnMJgML3APaBmfOp6cNgas0HOFLn7YCJ9t RwvAvDwKlwACh5Y2WaH8SYappE+KxFzPYG22EvIPo0pYp4eYGp52pNwS8JUBHX39jpGn KyyV+sycOit5HZK8sukkfuVL/Bfn0cBmW79zilVLgTeAKHW5n0VQGehTG0J11yLPVzKS JdSyKtBiFPzQ7ho0Qfjc201wn6fV1KNo4fb4K4jM1Jya+7jxx7diX9cQyFo2tgDVbssA TyQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P5P7+32EPNiTA9W/bPQnunX4XIHQIJgt5gQH7DdKhy0=; b=fybLpQvstKuiPLVZXPTpgKmobQ3Ap844yHt/9iZzEv5GnXr2QoCd4SxB3bS/gIm44T bYQZn0r3mhDH8puw4maItcn0rHKzwA+QIDfBzkY5LMwVKZiS2wRa5LEK9xs6/CCVW3bK O8pS4FZ//bTRTGI3o+ZXFXZZXSQUg3+koy/rlta2ndP4GUT77HP1wAJlWtuljk6gjuNZ bMqO0NwdtVzgaELPRQYOFLbkXV9AP1pbdehb+MRg0mIlQuoUjv8CwCAukX7DKRjsd+oa Efb22OmrTtNnVL/1yddTzLot327mGBU4QJCQNP2mymDGNJSCGrbMZYm6PhaCRq8afdFl 09rw== X-Gm-Message-State: AGi0PuYE3rEsKoM+z1xoyR631Xrttc9f5jiAvd1wS7LZ16CnxAAxd+hk qc4+A3IgL74hQBZmkPqKucudUA== X-Received: by 2002:a05:6a00:c8:: with SMTP id e8mr3777718pfj.131.1585845601274; Thu, 02 Apr 2020 09:40:01 -0700 (PDT) Received: from google.com ([2620:15c:2ce:0:9efe:9f1:9267:2b27]) by smtp.gmail.com with ESMTPSA id ci18sm4102094pjb.23.2020.04.02.09.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 09:40:00 -0700 (PDT) Date: Thu, 2 Apr 2020 09:39:57 -0700 From: Fangrui Song To: 'Nick Desaulniers' via Clang Built Linux Cc: Masahiro Yamada , Nathan Chancellor , Linux Kbuild mailing list , Linux Kernel Mailing List , Sandeep Patil 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 \