forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable LLVM toolchain for building LKL targets.
To build LKL targets with clang/ld.lld provide LLVM and CROSS_COMPILE variables on the make command line in a similar way they used in the upstream Linux mainline: // to make LKL targets with the default versions of clang/ld.lld make -C tools/lkl LLVM=1 CROSS_COMPILE=x86_64-linux-gnu // to make LKL targets with clang/ld.lld in a specific location make -C tools/lkl LLVM=/usr/bin/ CROSS_COMPILE=x86_64-linux-gnu // to make LKL targets with a specific versions of clang/ld.lld, e.g. 13 make -C tools/lkl LLVM=-13 CROSS_COMPILE=x86_64-linux-gnu Additional documentation on LLVM/CROSS_COMPILE variables is available in Documentation/kbuild/llvm.rst. At the moment the LKL makefiles support x86_64-linux-gnu LLVM target only. Signed-off-by: Eugene Rodionov <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters