Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp129011pxa; Wed, 26 Aug 2020 06:39:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYCaNqqEgVogc98kF1oq/n+MkoABcdnLKhYpLoijSGQ5CUVpMdfeWZh7DaiDEbm0jA7FW1 X-Received: by 2002:a17:906:1404:: with SMTP id p4mr15545299ejc.256.1598449160909; Wed, 26 Aug 2020 06:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598449160; cv=none; d=google.com; s=arc-20160816; b=HpdY+4KWOLXq2cJJFCXfu3q+JwgPZwu//vmMtzxrabkFRIgdk0wjL1hiF+xcDr2AdD 1cA0ZHe7v1mNWnAxe5NKnx9hxg1kYEMSGF8ZYvIZ9Tsn5N7+HZNCcwVRAyTaCiNPOnzf jESK3NbNq3EYAG671lgQCg2SFLN+3KvXkB4GzI/prb+HJlNThVtnJjQN/m2VXbA1REmR OoMsZvXfzSAMdN3GgWqKaq2JBC5HkClM4HG3WKUEA3FY8O+f+qBTs4TK5EynCl3R8xNY 8SA//O+WvhmUqLmlBsuQ9dShjPqqWpMUskKLHNjUA7YlxTYnKv68NtNxjD1nVRfqmv+M 7j1g== 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; bh=SP5d3jG0vnXwMEQbip8bqbDIaxrDFT2DZzwmlreys9g=; b=WeYBcOBMBih2Bcoo86Hup3F6cqzHHe2tqPMutNVvbbs5lx79UT+OBtxU3Fp2rdmrEZ T/eJCVfB2Ut0UNwjROsrj3zkHb/Tx37qlmCA0tSp9noo+oAASXwOfWVaRTFUg7p60ZvI +9Ddr6mlprILFNXkICh+zPNLqLzHBK7t/oGhsW8RRwZCiUsNKkypatJqvK2vTNpt5pFi 52aVDEEr8CExY1D3mDZku9oq5wy823u/jmHn7kWemqoubPPbpP+HQY7NkbnuAqoaPQSD a34dcUJrCqNjVtLxET50TlcCr+VQkg9kmCXmeedHD8oyW9IvsVE+EXto1KMbuG+MmphL B+uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FUwcXI8S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n11si1638666ejg.69.2020.08.26.06.38.54; Wed, 26 Aug 2020 06:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FUwcXI8S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730321AbgHZNgn (ORCPT + 99 others); Wed, 26 Aug 2020 09:36:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730299AbgHZNgl (ORCPT ); Wed, 26 Aug 2020 09:36:41 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C54ECC061757 for ; Wed, 26 Aug 2020 06:36:40 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id kx11so873332pjb.5 for ; Wed, 26 Aug 2020 06:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SP5d3jG0vnXwMEQbip8bqbDIaxrDFT2DZzwmlreys9g=; b=FUwcXI8S8muSj7MVzzGKs+YctUqEEY5UV/FKoUXmhe1EoJXyEIVwoaLJPj0FHphXBX +fqWeMmU/0aL42b9epfEWZedvmpCj80qY+WGdrLpUcKaIMgNqkC8C5n2fACBER2q2n2K rm72ABEAU6bi+uWz9kF7CYQgrVe2VAPDLiG9Zne/DCeAnnzgmCI9B264omQ9JwFYTPeW QWiNk63gesvxyPy5tITjH0DtrThCh2pZYKkNxU5ckelYKRKsOqtr0lbrK/rRHjW80XkZ RCLuadhJpyynt/wdxdNlkI41Y2C5ILXeKWN/kpYbgiKCWSonFiAIFwTfqETuJw7u1DdP I1xw== 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=SP5d3jG0vnXwMEQbip8bqbDIaxrDFT2DZzwmlreys9g=; b=ZfMDSyGc8RyUA4NajbikYVr3HHWyTLyx6p9fusVLGZGOaAgreA5YJvKcjzvo4q74J8 0Z5K4bW//WW6lvovz7fxCnkTI1UdS4BXW/Fs5r3czxaNEm3VGkb32SSogpaSUGkuO+cW mgNgfVba/9WDyJVmclHpAlTCKNYrRvLUAQb+rdWhkQ7Nu5OPEMnXbtBnPNyCZUPL9tnN cxnlpmcRabWlxG+F1EOjvdhJznek45Ih4d7UKLtrKfMllYNsKJzD5DbWJJXvc9cb73KI blBKanqLfF9JMCjTqpv8+nkO7dn1QKuaUcvatgO+b3Hs9pAD6fK/NOpKl8JB1JOHQf7t 4fug== X-Gm-Message-State: AOAM530UtkXrJjCH43oQ12j1qqsiAIX3lZRtWLkh8JZaLOVK+2B7ogYL 8HKx6JMVoaCjZHCZDGF0Ag6C3+h9gS8GSQW0vslvXw== X-Received: by 2002:a17:902:fe01:: with SMTP id g1mr11873819plj.71.1598448999463; Wed, 26 Aug 2020 06:36:39 -0700 (PDT) MIME-Version: 1.0 References: <20200825231438.15682-1-natechancellor@gmail.com> In-Reply-To: <20200825231438.15682-1-natechancellor@gmail.com> From: Nick Desaulniers Date: Wed, 26 Aug 2020 06:36:28 -0700 Message-ID: Subject: Re: [PATCH] Documentation/llvm: Improve formatting of commands, variables, and arguments To: Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , clang-built-linux , Linux Kbuild mailing list , Linux Doc Mailing List , LKML 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 Tue, Aug 25, 2020 at 4:14 PM Nathan Chancellor wrote: > > While reviewing a separate patch, I noticed that the formatting of the > commands, variables, and arguments was not in a monospaced font like the > rest of the Kbuild documentation (see kbuild/kconfig.rst for an > example). This is due to a lack of "::" before indented command blocks > and single backticks instead of double backticks for inline formatting. > > Add those so that the document looks nicer in an HTML format, while not > ruining the look in plain text. > > As a result of this, we can remove the escaped backslashes in the last > code block and move them to single backslashes. > > Signed-off-by: Nathan Chancellor Ah, yeah, I saw that. Thanks for the fix! Reviewed-by: Nick Desaulniers > --- > Documentation/kbuild/llvm.rst | 26 +++++++++++++------------- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/Documentation/kbuild/llvm.rst b/Documentation/kbuild/llvm.rst > index 2aac50b97921..334df758dce3 100644 > --- a/Documentation/kbuild/llvm.rst > +++ b/Documentation/kbuild/llvm.rst > @@ -23,8 +23,8 @@ supports C and the GNU C extensions required by the kernel, and is pronounced > Clang > ----- > > -The compiler used can be swapped out via `CC=` command line argument to `make`. > -`CC=` should be set when selecting a config and during a build. > +The compiler used can be swapped out via ``CC=`` command line argument to ``make``. > +``CC=`` should be set when selecting a config and during a build. :: > > make CC=clang defconfig > > @@ -34,33 +34,33 @@ Cross Compiling > --------------- > > A single Clang compiler binary will typically contain all supported backends, > -which can help simplify cross compiling. > +which can help simplify cross compiling. :: > > ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang > > -`CROSS_COMPILE` is not used to prefix the Clang compiler binary, instead > -`CROSS_COMPILE` is used to set a command line flag: `--target `. For > -example: > +``CROSS_COMPILE`` is not used to prefix the Clang compiler binary, instead > +``CROSS_COMPILE`` is used to set a command line flag: ``--target ``. For > +example: :: > > clang --target aarch64-linux-gnu foo.c > > LLVM Utilities > -------------- > > -LLVM has substitutes for GNU binutils utilities. Kbuild supports `LLVM=1` > -to enable them. > +LLVM has substitutes for GNU binutils utilities. Kbuild supports ``LLVM=1`` > +to enable them. :: > > make LLVM=1 > > -They can be enabled individually. The full list of the parameters: > +They can be enabled individually. The full list of the parameters: :: > > - make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \\ > - OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \\ > - READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \\ > + make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \ > + OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \ > + READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \ > HOSTLD=ld.lld > > Currently, the integrated assembler is disabled by default. You can pass > -`LLVM_IAS=1` to enable it. > +``LLVM_IAS=1`` to enable it. > > Getting Help > ------------ > > base-commit: abb3438d69fb6dd5baa4ae23eafbf5b87945eff1 > -- > 2.28.0 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20200825231438.15682-1-natechancellor%40gmail.com. -- Thanks, ~Nick Desaulniers