Skip to content

Commit e30d694

Browse files
ffainellimasahir0y
authored andcommitted
Documentation/llvm: Fix clang target examples
clang --target=<triple> is how we can specify a particular toolchain triple to be use, fix the two occurences in the documentation. Fixes: fcf1b6a ("Documentation/llvm: add documentation on building w/ Clang/LLVM") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 516d980 commit e30d694

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/kbuild/llvm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ which can help simplify cross compiling. ::
3939
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang
4040

4141
``CROSS_COMPILE`` is not used to prefix the Clang compiler binary, instead
42-
``CROSS_COMPILE`` is used to set a command line flag: ``--target <triple>``. For
42+
``CROSS_COMPILE`` is used to set a command line flag: ``--target=<triple>``. For
4343
example: ::
4444

45-
clang --target aarch64-linux-gnu foo.c
45+
clang --target=aarch64-linux-gnu foo.c
4646

4747
LLVM Utilities
4848
--------------

0 commit comments

Comments
 (0)