From nobody Mon Nov 25 22:45:20 2024 Received: from zg8tmtu5ljy1ljeznc42.icoremail.net (zg8tmtu5ljy1ljeznc42.icoremail.net [159.65.134.6]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C7291ACDE8; Wed, 23 Oct 2024 15:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.65.134.6 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729697661; cv=none; b=e83mG+15i5XbEtE1MJLbUixpXvW7ORJuyFEeQj9sWtpQZhrcPo6+eF77x827VIAP1xz++fUHbtBtEJPz2GhY4jeh4WoGxE6NrxjfFShTki4HqlcjywzxPYwaYHflC/q+Hz5BrH8QAIbgRagFefiM32pqE/+SjzfOTV9ZiVwqbyo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729697661; c=relaxed/simple; bh=sRG3sksCD+HaKbg5LrT4TyCeTwWp2s1EsevkaNuyUZ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=r3Gf8FJ2PVUtqsIMCxGd1YG/t/vZj9nTCEK5o7oBlGwLo6FnAvHFBAI0ruJi4MYdUSADkHMKjE1Kwe1Esxv011H8d2LyXnnxMqfGAI+SqHUBHwgMBdkgNx5wEnJVWuTBwe/fYhHCX6bq+LzqT9tueuLT3J73w5Z41QS9/KRj+90= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hust.edu.cn; spf=pass smtp.mailfrom=hust.edu.cn; arc=none smtp.client-ip=159.65.134.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hust.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hust.edu.cn Received: from hust.edu.cn (unknown [172.16.0.50]) by app1 (Coremail) with SMTP id HgEQrACH6G1AFxlnvm58CA--.31049S2; Wed, 23 Oct 2024 23:33:20 +0800 (CST) Received: from pride-PowerEdge-R740.. (unknown [222.20.126.129]) by gateway (Coremail) with SMTP id _____wC3sEM4FxlnydKZAA--.10656S2; Wed, 23 Oct 2024 23:33:13 +0800 (CST) From: Dongliang Mu To: si.yanteng@linux.dev, Alex Shi , Yanteng Si , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Dongliang Mu Cc: hust-os-kernel-patches@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, llvm@lists.linux.dev Subject: [PATCH] docs/zh_CN: add the translation of kbuild/llvm.rst Date: Wed, 23 Oct 2024 23:32:02 +0800 Message-ID: <20241023153235.1291567-1-dzm91@hust.edu.cn> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: HgEQrACH6G1AFxlnvm58CA--.31049S2 Authentication-Results: app1; spf=neutral smtp.mail=dzm91@hust.edu.cn; X-Coremail-Antispam: 1UD129KBjvJXoWxtry3tFWfXw47JrW3KFy3Arb_yoWftrWfpF Z7CryfGanxJFyjyryI9F4Duw1rCw4kCa4jv3WrJw10vr1IvFy0v3W2kFW093srW3yxC34U JFyfCr1jyFy7CrDanT9S1TB71UUUU1UqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUHqb7Iv0xC_KF4lb4IE77IF4wAFc2x0x2IEx4CE42xK8VAvwI8I cIk0rVWrJVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjx v20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vE x4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAaw2AFwI0_Jw 0_GFylnxkEFVAIw20F6cxK64vIFxWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF 0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0EF7xvrVAajcxG14v26F 4j6r4UJwAv7VCjz48v1sIEY20_GFW3Jr1UJwAv7VCY1x0262k0Y48FwI0_Gr1j6F4UJwAm 72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42 xK82IYc2Ij64vIr41l42xK82IY6x8ErcxFaVAv8VW8uFyUJr1UMxC20s026xCaFVCjc4AY 6r1j6r4UMxCIbckI1I0E14v26r1q6r43MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7 xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVW8ZVWrXwCIccxYrVCIc48FwI0_Xr0_Ar1l IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j 6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jonm iUUUUU= X-CM-SenderInfo: asqsiiirqrkko6kx23oohg3hdfq/ Finish the translation of kbuild/llvm.rst and move llvm from TODO to the main body. Update to commit 145082ebfcf0 ("Documentation/llvm: turn make command for ccache into code block") Signed-off-by: Dongliang Mu Reviewed-by: Yanteng Si --- .../translations/zh_CN/kbuild/index.rst | 3 +- .../translations/zh_CN/kbuild/llvm.rst | 203 ++++++++++++++++++ 2 files changed, 205 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/kbuild/llvm.rst diff --git a/Documentation/translations/zh_CN/kbuild/index.rst b/Documentat= ion/translations/zh_CN/kbuild/index.rst index 0ba96aecb13a..3f9ab52fa5bb 100644 --- a/Documentation/translations/zh_CN/kbuild/index.rst +++ b/Documentation/translations/zh_CN/kbuild/index.rst @@ -17,6 +17,7 @@ gcc-plugins kbuild reproducible-builds + llvm =20 TODO: =20 @@ -25,7 +26,7 @@ TODO: - makefiles - modules - issues -- llvm + =20 .. only:: subproject and html =20 diff --git a/Documentation/translations/zh_CN/kbuild/llvm.rst b/Documentati= on/translations/zh_CN/kbuild/llvm.rst new file mode 100644 index 000000000000..f71092144a26 --- /dev/null +++ b/Documentation/translations/zh_CN/kbuild/llvm.rst @@ -0,0 +1,203 @@ +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/kbuild/llvm.rst +:Translator: =E6=85=95=E5=86=AC=E4=BA=AE Dongliang Mu + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D +=E4=BD=BF=E7=94=A8 Clang/LLVM =E6=9E=84=E5=BB=BA Linux +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D + +=E6=9C=AC=E6=96=87=E6=A1=A3=E4=BB=8B=E7=BB=8D=E5=A6=82=E4=BD=95=E4=BD=BF= =E7=94=A8 Clang =E5=92=8C LLVM =E5=B7=A5=E5=85=B7=E6=9E=84=E5=BB=BA Linux = =E5=86=85=E6=A0=B8=E3=80=82 + +=E5=85=B3=E4=BA=8E +---- + +Linux =E5=86=85=E6=A0=B8=E4=BC=A0=E7=BB=9F=E4=B8=8A=E4=B8=80=E7=9B=B4=E4= =BD=BF=E7=94=A8 GNU =E5=B7=A5=E5=85=B7=E9=93=BE=EF=BC=88=E5=A6=82 GCC =E5= =92=8C binutils=EF=BC=89=E8=BF=9B=E8=A1=8C=E7=BC=96=E8=AF=91=E3=80=82=E6=8C= =81=E7=BB=AD=E7=9A=84=E5=B7=A5=E4=BD=9C=E4=BD=BF=E5=BE=97 +`Clang `_ =E5=92=8C `LLVM `_ = =E5=B7=A5=E5=85=B7=E5=8F=AF +=E4=BD=9C=E4=B8=BA=E5=8F=AF=E8=A1=8C=E7=9A=84=E6=9B=BF=E4=BB=A3=E5=93=81= =E3=80=82=E4=B8=80=E4=BA=9B=E5=8F=91=E8=A1=8C=E7=89=88=EF=BC=8C=E5=A6=82 `A= ndroid `_=E3=80=81 +`ChromeOS `_=E3=80=81`OpenMandriva +`_ =E5=92=8C `Chimera Linux +`_ =E4=BD=BF=E7=94=A8 Clang =E7=BC=96=E8=AF=91= =E7=9A=84=E5=86=85=E6=A0=B8=E3=80=82=E8=B0=B7=E6=AD=8C=E5=92=8C Meta =E7=9A= =84=E6=95=B0=E6=8D=AE=E4=B8=AD=E5=BF=83 +=E9=9B=86=E7=BE=A4=E4=B9=9F=E8=BF=90=E8=A1=8C=E7=94=B1 Clang =E7=BC=96=E8= =AF=91=E7=9A=84=E5=86=85=E6=A0=B8=E3=80=82 + +`LLVM =E6=98=AF=E7=94=B1 C++ =E5=AF=B9=E8=B1=A1=E5=AE=9E=E7=8E=B0=E7=9A=84= =E5=B7=A5=E5=85=B7=E9=93=BE=E7=BB=84=E4=BB=B6=E9=9B=86=E5=90=88 `_=E3=80=82 +Clang =E6=98=AF LLVM =E7=9A=84=E5=89=8D=E7=AB=AF=EF=BC=8C=E6=94=AF=E6=8C= =81 C =E8=AF=AD=E8=A8=80=E5=92=8C=E5=86=85=E6=A0=B8=E6=89=80=E9=9C=80=E7=9A= =84 GNU C =E6=89=A9=E5=B1=95=EF=BC=8C=E5=85=B6=E5=8F=91=E9=9F=B3=E4=B8=BA "= klang"=EF=BC=8C=E8=80=8C=E9=9D=9E +"see-lang"=E3=80=82 + +=E4=BD=BF=E7=94=A8 LLVM =E6=9E=84=E5=BB=BA +-------------- + +=E9=80=9A=E8=BF=87=E4=BB=A5=E4=B8=8B=E5=91=BD=E4=BB=A4=E8=B0=83=E7=94=A8 `= `make``:: + + make LLVM=3D1 + +=E4=B8=BA=E4=B8=BB=E6=9C=BA=E7=9B=AE=E6=A0=87=E8=BF=9B=E8=A1=8C=E7=BC=96= =E8=AF=91=E3=80=82=E5=AF=B9=E4=BA=8E=E4=BA=A4=E5=8F=89=E7=BC=96=E8=AF=91:: + + make LLVM=3D1 ARCH=3Darm64 + +LLVM=3D =E5=8F=82=E6=95=B0 +---------- + +LLVM =E6=9C=89 GNU binutils =E5=B7=A5=E5=85=B7=E7=9A=84=E6=9B=BF=E4=BB=A3= =E5=93=81=E3=80=82=E8=BF=99=E4=BA=9B=E5=B7=A5=E5=85=B7=E5=8F=AF=E4=BB=A5=E5= =8D=95=E7=8B=AC=E5=90=AF=E7=94=A8=E3=80=82=E4=BB=A5=E4=B8=8B=E6=98=AF=E6=94= =AF=E6=8C=81=E7=9A=84 make =E5=8F=98=E9=87=8F +=E5=AE=8C=E6=95=B4=E5=88=97=E8=A1=A8:: + + make CC=3Dclang LD=3Dld.lld AR=3Dllvm-ar NM=3Dllvm-nm STRIP=3Dllvm-strip \ + OBJCOPY=3Dllvm-objcopy OBJDUMP=3Dllvm-objdump READELF=3Dllvm-readelf \ + HOSTCC=3Dclang HOSTCXX=3Dclang++ HOSTAR=3Dllvm-ar HOSTLD=3Dld.lld + +``LLVM=3D1`` =E6=89=A9=E5=B1=95=E4=B8=BA=E4=B8=8A=E8=BF=B0=E5=91=BD=E4=BB= =A4=E3=80=82 + +=E5=A6=82=E6=9E=9C=E4=BD=A0=E7=9A=84 LLVM =E5=B7=A5=E5=85=B7=E4=B8=8D=E5= =9C=A8 PATH =E4=B8=AD=EF=BC=8C=E4=BD=A0=E5=8F=AF=E4=BB=A5=E4=BD=BF=E7=94=A8= =E4=BB=A5=E6=96=9C=E6=9D=A0=E7=BB=93=E5=B0=BE=E7=9A=84 LLVM =E5=8F=98=E9=87= =8F=E6=8F=90=E4=BE=9B=E5=AE=83=E4=BB=AC=E7=9A=84=E4=BD=8D=E7=BD=AE:: + + make LLVM=3D/path/to/llvm/ + +=E8=BF=99=E5=B0=86=E4=BD=BF=E7=94=A8 ``/path/to/llvm/clang``=E3=80=81``/pa= th/to/llvm/ld.lld`` =E7=AD=89=E5=B7=A5=E5=85=B7=E3=80=82=E4=B9=9F=E5=8F=AF= =E4=BB=A5 +=E4=BD=BF=E7=94=A8=E4=BB=A5=E4=B8=8B=E5=91=BD=E4=BB=A4:: + + PATH=3D/path/to/llvm:$PATH make LLVM=3D1 + +=E5=A6=82=E6=9E=9C=E4=BD=A0=E7=9A=84 LLVM =E5=B7=A5=E5=85=B7=E5=B8=A6=E6= =9C=89=E7=89=88=E6=9C=AC=E5=90=8E=E7=BC=80=EF=BC=8C=E5=B9=B6=E4=B8=94=E4=BD= =A0=E5=B8=8C=E6=9C=9B=E6=B5=8B=E8=AF=95=E8=AF=A5=E7=89=B9=E5=AE=9A=E7=89=88= =E6=9C=AC=E8=80=8C=E9=9D=9E=E6=97=A0=E5=90=8E=E7=BC=80=E7=9A=84=E5=8F=AF=E6= =89=A7=E8=A1=8C=E6=96=87=E4=BB=B6=EF=BC=8C +=E7=B1=BB=E4=BC=BC=E4=BA=8E ``LLVM=3D1``=EF=BC=8C=E4=BD=A0=E5=8F=AF=E4=BB= =A5=E4=BD=BF=E7=94=A8 ``LLVM`` =E5=8F=98=E9=87=8F=E4=BC=A0=E9=80=92=E8=AF= =A5=E5=90=8E=E7=BC=80:: + + make LLVM=3D-14 + +=E8=BF=99=E5=B0=86=E4=BD=BF=E7=94=A8 ``clang-14``=E3=80=81``ld.lld-14`` = =E7=AD=89=E5=B7=A5=E5=85=B7=E3=80=82=E4=B8=BA=E4=BA=86=E6=94=AF=E6=8C=81=E5= =B8=A6=E6=9C=89=E7=89=88=E6=9C=AC=E5=90=8E=E7=BC=80=E7=9A=84=E6=A0=91=E5=A4= =96=E8=B7=AF=E5=BE=84=E7=BB=84=E5=90=88=EF=BC=8C +=E6=88=91=E4=BB=AC=E5=BB=BA=E8=AE=AE:: + + PATH=3D/path/to/llvm/:$PATH make LLVM=3D-14 + +``LLVM=3D0`` =E4=B8=8E=E7=9C=81=E7=95=A5 ``LLVM`` =E5=AE=8C=E5=85=A8=E4=B8= =8D=E5=90=8C=EF=BC=8C=E5=AE=83=E5=B0=86=E8=A1=A8=E7=8E=B0=E5=BE=97=E5=83=8F= ``LLVM=3D1``=E3=80=82=E5=A6=82=E6=9E=9C=E4=BD=A0=E5=8F=AA=E5=B8=8C=E6=9C= =9B=E4=BD=BF=E7=94=A8 +=E6=9F=90=E4=BA=9B LLVM =E5=B7=A5=E5=85=B7=EF=BC=8C=E8=AF=B7=E4=BD=BF=E7= =94=A8=E5=AE=83=E4=BB=AC=E5=90=84=E8=87=AA=E7=9A=84 make =E5=8F=98=E9=87=8F= =E3=80=82 + +=E5=9C=A8=E9=80=9A=E8=BF=87=E4=B8=8D=E5=90=8C=E5=91=BD=E4=BB=A4=E9=85=8D= =E7=BD=AE=E5=92=8C=E6=9E=84=E5=BB=BA=E6=97=B6=EF=BC=8C=E5=BA=94=E4=B8=BA=E6= =AF=8F=E6=AC=A1=E8=B0=83=E7=94=A8 ``make`` =E8=AE=BE=E7=BD=AE=E7=9B=B8=E5= =90=8C=E7=9A=84 ``LLVM=3D`` =E5=80=BC=E3=80=82=E5=A6=82=E6=9E=9C +=E8=BF=90=E8=A1=8C=E7=9A=84=E8=84=9A=E6=9C=AC=E6=9C=80=E7=BB=88=E4=BC=9A= =E8=B0=83=E7=94=A8 ``make``=EF=BC=8C=E5=88=99=E8=BF=98=E5=BA=94=E5=B0=86 ``= LLVM=3D`` =E8=AE=BE=E7=BD=AE=E4=B8=BA=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F= =E3=80=82 + +=E4=BA=A4=E5=8F=89=E7=BC=96=E8=AF=91 +-------- + +=E5=8D=95=E4=B8=AA Clang =E7=BC=96=E8=AF=91=E5=99=A8=E4=BA=8C=E8=BF=9B=E5= =88=B6=E6=96=87=E4=BB=B6=EF=BC=88=E5=8F=8A=E5=85=B6=E5=AF=B9=E5=BA=94=E7=9A= =84 LLVM =E5=B7=A5=E5=85=B7=EF=BC=89=E9=80=9A=E5=B8=B8=E4=BC=9A=E5=8C=85=E5= =90=AB=E6=89=80=E6=9C=89=E6=94=AF=E6=8C=81=E7=9A=84=E5=90=8E=E7=AB=AF=EF=BC= =8C=E8=BF=99=E5=8F=AF=E4=BB=A5 +=E7=AE=80=E5=8C=96=E4=BA=A4=E5=8F=89=E7=BC=96=E8=AF=91=EF=BC=8C=E5=B0=A4= =E5=85=B6=E6=98=AF=E4=BD=BF=E7=94=A8 ``LLVM=3D1`` =E6=97=B6=E3=80=82=E5=A6= =82=E6=9E=9C=E4=BB=85=E4=BD=BF=E7=94=A8 LLVM =E5=B7=A5=E5=85=B7=EF=BC=8C``C= ROSS_COMPILE`` +=E6=88=96=E7=9B=AE=E6=A0=87=E4=B8=89=E5=85=83=E7=BB=84=E5=89=8D=E7=BC=80= =E5=B0=B1=E5=8F=98=E5=BE=97=E4=B8=8D=E5=BF=85=E8=A6=81=E3=80=82=E7=A4=BA=E4= =BE=8B:: + + make LLVM=3D1 ARCH=3Darm64 + +=E4=BD=9C=E4=B8=BA=E6=B7=B7=E5=90=88 LLVM =E5=92=8C GNU =E5=B7=A5=E5=85=B7= =E7=9A=84=E7=A4=BA=E4=BE=8B=EF=BC=8C=E5=AF=B9=E4=BA=8E=E5=83=8F ``ARCH=3Ds3= 90`` =E8=BF=99=E6=A0=B7=E7=9B=AE=E5=89=8D=E5=B0=9A=E4=B8=8D=E6=94=AF=E6=8C= =81 +``ld.lld`` =E6=88=96 ``llvm-objcopy`` =E7=9A=84=E7=9B=AE=E6=A0=87=EF=BC=8C= =E4=BD=A0=E5=8F=AF=E4=BB=A5=E9=80=9A=E8=BF=87=E4=BB=A5=E4=B8=8B=E6=96=B9=E5= =BC=8F=E8=B0=83=E7=94=A8 ``make``:: + + make LLVM=3D1 ARCH=3Ds390 LD=3Ds390x-linux-gnu-ld.bfd \ + OBJCOPY=3Ds390x-linux-gnu-objcopy + +=E6=AD=A4=E7=A4=BA=E4=BE=8B=E5=B0=86=E8=B0=83=E7=94=A8 ``s390x-linux-gnu-l= d.bfd`` =E4=BD=9C=E4=B8=BA=E9=93=BE=E6=8E=A5=E5=99=A8=E5=92=8C +``s390x-linux-gnu-objcopy``=EF=BC=8C=E5=9B=A0=E6=AD=A4=E8=AF=B7=E7=A1=AE= =E4=BF=9D=E5=AE=83=E4=BB=AC=E5=9C=A8=E4=BD=A0=E7=9A=84 ``$PATH`` =E4=B8=AD= =E3=80=82 + +=E5=BD=93 ``LLVM=3D1`` =E6=9C=AA=E8=AE=BE=E7=BD=AE=E6=97=B6=EF=BC=8C``CROS= S_COMPILE`` =E4=B8=8D=E4=BC=9A=E7=94=A8=E4=BA=8E=E7=BB=99 Clang =E7=BC=96= =E8=AF=91=E5=99=A8=E4=BA=8C=E8=BF=9B=E5=88=B6=E6=96=87=E4=BB=B6 +=EF=BC=88=E6=88=96=E7=9B=B8=E5=BA=94=E7=9A=84 LLVM =E5=B7=A5=E5=85=B7=EF= =BC=89=E6=B7=BB=E5=8A=A0=E5=89=8D=E7=BC=80=EF=BC=8C=E8=80=8C GNU =E5=B7=A5= =E5=85=B7=E5=88=99=E9=9C=80=E8=A6=81=E8=BF=99=E6=A0=B7=E5=81=9A=E3=80=82 + +LLVM_IAS=3D =E5=8F=82=E6=95=B0 +-------------- + +Clang =E5=8F=AF=E4=BB=A5=E7=BC=96=E8=AF=91=E6=B1=87=E7=BC=96=E4=BB=A3=E7= =A0=81=E3=80=82=E4=BD=A0=E5=8F=AF=E4=BB=A5=E4=BC=A0=E9=80=92 ``LLVM_IAS=3D0= `` =E7=A6=81=E7=94=A8=E6=AD=A4=E8=A1=8C=E4=B8=BA=EF=BC=8C=E4=BD=BF Clang = =E8=B0=83=E7=94=A8 +=E7=9B=B8=E5=BA=94=E7=9A=84=E9=9D=9E=E9=9B=86=E6=88=90=E6=B1=87=E7=BC=96= =E5=99=A8=E3=80=82=E7=A4=BA=E4=BE=8B:: + + make LLVM=3D1 LLVM_IAS=3D0 + +=E5=9C=A8=E4=BA=A4=E5=8F=89=E7=BC=96=E8=AF=91=E6=97=B6=EF=BC=8C=E4=BD=A0= =E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8 ``CROSS_COMPILE`` =E4=B8=8E ``LLVM_IAS= =3D0``=EF=BC=8C=E4=BB=8E=E8=80=8C=E8=AE=BE=E7=BD=AE +``--prefix=3D`` =E4=BD=BF=E5=BE=97=E7=BC=96=E8=AF=91=E5=99=A8=E5=8F=AF=E4= =BB=A5=E5=AF=B9=E5=BA=94=E7=9A=84=E9=9D=9E=E9=9B=86=E6=88=90=E6=B1=87=E7=BC= =96=E5=99=A8=EF=BC=88=E9=80=9A=E5=B8=B8=EF=BC=8C=E5=9C=A8=E9=9D=A2=E5=90=91= =E5=8F=A6=E4=B8=80=E7=A7=8D=E6=9E=B6=E6=9E=84=E6=97=B6=EF=BC=8C +=E4=BD=A0=E4=B8=8D=E6=83=B3=E4=BD=BF=E7=94=A8=E7=B3=BB=E7=BB=9F=E6=B1=87= =E7=BC=96=E5=99=A8=EF=BC=89=E3=80=82=E4=BE=8B=E5=A6=82:: + + make LLVM=3D1 ARCH=3Darm LLVM_IAS=3D0 CROSS_COMPILE=3Darm-linux-gnueabi- + +Ccache +------ + +``ccache`` =E5=8F=AF=E4=BB=A5=E4=B8=8E ``clang`` =E4=B8=80=E8=B5=B7=E4=BD= =BF=E7=94=A8=EF=BC=8C=E4=BB=A5=E6=94=B9=E5=96=84=E5=90=8E=E7=BB=AD=E6=9E=84= =E5=BB=BA=EF=BC=88=E5=B0=BD=E7=AE=A1=E5=9C=A8=E4=B8=8D=E5=90=8C=E6=9E=84=E5= =BB=BA=E4=B9=8B=E9=97=B4 +KBUILD_BUILD_TIMESTAMP_ =E5=BA=94=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=90=8C=E4= =B8=80=E7=A1=AE=E5=AE=9A=E5=80=BC=EF=BC=8C=E4=BB=A5=E9=81=BF=E5=85=8D 100% = =E7=9A=84=E7=BC=93=E5=AD=98=E6=9C=AA=E5=91=BD=E4=B8=AD=EF=BC=8C +=E8=AF=A6=E8=A7=81 Reproducible_builds_ =E8=8E=B7=E5=8F=96=E6=9B=B4=E5=A4= =9A=E4=BF=A1=E6=81=AF=EF=BC=89:: + + KBUILD_BUILD_TIMESTAMP=3D'' make LLVM=3D1 CC=3D"ccache clang" + +.. _KBUILD_BUILD_TIMESTAMP: kbuild.html#kbuild-build-timestamp +.. _Reproducible_builds: reproducible-builds.html#timestamps + +=E6=94=AF=E6=8C=81=E7=9A=84=E6=9E=B6=E6=9E=84 +---------- + +LLVM =E5=B9=B6=E4=B8=8D=E6=94=AF=E6=8C=81 Linux =E5=86=85=E6=A0=B8=E6=89= =80=E6=9C=89=E5=8F=AF=E6=94=AF=E6=8C=81=E7=9A=84=E6=9E=B6=E6=9E=84=EF=BC=8C= =E5=90=8C=E6=A0=B7=EF=BC=8C=E5=8D=B3=E4=BD=BF LLVM =E6=94=AF=E6=8C=81=E6=9F= =90=E4=B8=80=E6=9E=B6=E6=9E=84=EF=BC=8C=E4=B9=9F=E5=B9=B6=E4=B8=8D=E6=84=8F= =E5=91=B3=E7=9D=80=E5=9C=A8 +=E8=AF=A5=E6=9E=B6=E6=9E=84=E4=B8=8B=E5=86=85=E6=A0=B8=E5=8F=AF=E4=BB=A5= =E6=AD=A3=E5=B8=B8=E6=9E=84=E5=BB=BA=E6=88=96=E5=B7=A5=E4=BD=9C=E3=80=82=E4= =BB=A5=E4=B8=8B=E6=98=AF=E5=BD=93=E5=89=8D ``CC=3Dclang`` =E6=88=96 ``LLVM= =3D1`` =E6=94=AF=E6=8C=81=E7=9A=84=E6=9E=B6=E6=9E=84=E6=80=BB=E7=BB=93=E3= =80=82 +=E6=94=AF=E6=8C=81=E7=BA=A7=E5=88=AB=E5=AF=B9=E5=BA=94=E4=BA=8E MAINTAINER= S =E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84 "S" =E5=80=BC=E3=80=82=E5=A6=82=E6= =9E=9C=E6=9F=90=E4=B8=AA=E6=9E=B6=E6=9E=84=E6=9C=AA=E5=88=97=E5=87=BA=EF=BC= =8C=E5=88=99=E8=A1=A8=E7=A4=BA LLVM =E4=B8=8D=E6=94=AF=E6=8C=81=E5=AE=83 +=E6=88=96=E5=AD=98=E5=9C=A8=E5=B7=B2=E7=9F=A5=E9=97=AE=E9=A2=98=E3=80=82= =E4=BD=BF=E7=94=A8=E6=9C=80=E6=96=B0=E7=9A=84=E7=A8=B3=E5=AE=9A=E7=89=88 LL= VM =E6=88=96=E7=94=9A=E8=87=B3=E5=BC=80=E5=8F=91=E7=89=88=E6=9C=AC=E9=80=9A= =E5=B8=B8=E4=BC=9A=E5=BE=97=E5=88=B0=E6=9C=80=E4=BD=B3=E7=BB=93=E6=9E=9C=E3= =80=82=E4=B8=80=E4=B8=AA=E6=9E=B6=E6=9E=84=E7=9A=84 +``defconfig`` =E9=80=9A=E5=B8=B8=E9=A2=84=E6=9C=9F=E8=83=BD=E5=A4=9F=E8=89= =AF=E5=A5=BD=E5=B7=A5=E4=BD=9C=EF=BC=8C=E4=BD=86=E6=9F=90=E4=BA=9B=E9=85=8D= =E7=BD=AE=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8=E5=B0=9A=E6=9C=AA=E5=8F=91=E7= =8E=B0=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=E6=AC=A2=E8=BF=8E=E5=9C=A8=E4=BB= =A5=E4=B8=8B +=E9=97=AE=E9=A2=98=E8=B7=9F=E8=B8=AA=E5=99=A8=E4=B8=AD=E6=8F=90=E4=BA=A4= =E9=94=99=E8=AF=AF=E6=8A=A5=E5=91=8A=EF=BC=81 + +.. list-table:: + :widths: 10 10 10 + :header-rows: 1 + + * - =E6=9E=B6=E6=9E=84 + - =E6=94=AF=E6=8C=81=E7=BA=A7=E5=88=AB + - ``make`` =E5=91=BD=E4=BB=A4 + * - arm + - =E6=94=AF=E6=8C=81 + - ``LLVM=3D1`` + * - arm64 + - =E6=94=AF=E6=8C=81 + - ``LLVM=3D1`` + * - hexagon + - =E7=BB=B4=E6=8A=A4 + - ``LLVM=3D1`` + * - loongarch + - =E7=BB=B4=E6=8A=A4 + - ``LLVM=3D1`` + * - mips + - =E7=BB=B4=E6=8A=A4 + - ``LLVM=3D1`` + * - powerpc + - =E7=BB=B4=E6=8A=A4 + - ``LLVM=3D1`` + * - riscv + - =E6=94=AF=E6=8C=81 + - ``LLVM=3D1`` + * - s390 + - =E7=BB=B4=E6=8A=A4 + - ``LLVM=3D1`` =EF=BC=88LLVM >=3D 18.1.0=EF=BC=89=EF=BC=8C``CC=3Dclan= g`` =EF=BC=88LLVM < 18.1.0=EF=BC=89 + * - um (=E7=94=A8=E6=88=B7=E6=A8=A1=E5=BC=8F) + - =E7=BB=B4=E6=8A=A4 + - ``LLVM=3D1`` + * - x86 + - =E6=94=AF=E6=8C=81 + - ``LLVM=3D1`` + +=E8=8E=B7=E5=8F=96=E5=B8=AE=E5=8A=A9 +-------- + +- `=E7=BD=91=E7=AB=99 `_ +- `=E9=82=AE=E4=BB=B6=E5=88=97=E8=A1=A8 `_:= +- `=E6=97=A7=E9=82=AE=E4=BB=B6=E5=88=97=E8=A1=A8=E6=A1=A3=E6=A1=88 `_ +- `=E9=97=AE=E9=A2=98=E8=B7=9F=E8=B8=AA=E5=99=A8 `_ +- IRC: #clangbuiltlinux =E5=9C=A8 irc.libera.chat +- `Telegram `_: @ClangBuiltLinux +- `=E7=BB=B4=E5=9F=BA `_ +- `=E5=88=9D=E5=AD=A6=E8=80=85=E9=97=AE=E9=A2=98 `_ + +.. _zh_cn_getting_llvm: + +=E8=8E=B7=E5=8F=96 LLVM +--------- + +=E6=88=91=E4=BB=AC=E5=9C=A8 `kernel.org `_ =E6=8F=90=E4=BE=9B=E9=A2=84=E7=BC=96=E8=AF=91=E7=9A=84=E7=A8=B3=E5=AE= =9A=E7=89=88 LLVM=E3=80=82 +=E8=BF=99=E4=BA=9B=E7=89=88=E6=9C=AC=E5=B7=B2=E7=BB=8F=E9=92=88=E5=AF=B9 L= inux =E5=86=85=E6=A0=B8=E6=9E=84=E5=BB=BA=EF=BC=8C=E4=BD=BF=E7=94=A8=E9=85= =8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=95=B0=E6=8D=AE=E8=BF=9B=E8=A1=8C=E4=BC=98= =E5=8C=96=E3=80=82=E7=9B=B8=E8=BE=83=E4=BA=8E=E5=85=B6=E4=BB=96=E5=8F=91=E8= =A1=8C=E7=89=88=E4=B8=AD=E7=9A=84 LLVM=EF=BC=8C=E5=AE=83=E4=BB=AC=E5=BA=94= =E8=AF=A5 +=E8=83=BD=E6=8F=90=E9=AB=98=E5=86=85=E6=A0=B8=E6=9E=84=E5=BB=BA=E6=97=B6= =E9=97=B4=E3=80=82 + +=E4=BB=A5=E4=B8=8B=E6=98=AF=E4=B8=80=E4=BA=9B=E6=9C=89=E5=8A=A9=E4=BA=8E= =E4=BB=8E=E6=BA=90=E4=BB=A3=E7=A0=81=E6=9E=84=E5=BB=BA LLVM =E6=88=96=E9=80= =9A=E8=BF=87=E5=8F=91=E8=A1=8C=E7=89=88=E7=9A=84=E5=8C=85=E7=AE=A1=E7=90=86= =E5=99=A8=E8=8E=B7=E5=8F=96 LLVM =E7=9A=84=E9=93=BE=E6=8E=A5=E3=80=82 + +- https://releases.llvm.org/download.html +- https://github.com/llvm/llvm-project +- https://llvm.org/docs/GettingStarted.html +- https://llvm.org/docs/CMake.html +- https://apt.llvm.org/ +- https://www.archlinux.org/packages/extra/x86_64/llvm/ +- https://github.com/ClangBuiltLinux/tc-build +- https://github.com/ClangBuiltLinux/linux/wiki/Building-Clang-from-source +- https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/ --=20 2.43.0