changing parameters in build

Carter Cheng cartercheng at gmail.com
Wed Oct 17 08:02:46 EDT 2018


The problem is I have to do something special with the clang options. I
have to add an interprocedural link time optimization pass spitting out
bitcode files and tying them together using llvm-link.

On Wed, Oct 17, 2018 at 7:55 PM Greg KH <greg at kroah.com> wrote:

> On Wed, Oct 17, 2018 at 04:24:13PM +0800, Carter Cheng wrote:
> > Hi,
> >
> > I am having exploring how much work it would be to do whole kernel
> > optimization using clang on the current kernel. My understanding is the
> > kernel uses a recursive make file system. I am curious if there are any
> > easy ways to get the kernel to build llvm bit code for all files without
> > going through and hand editing hundreds of makefiles.
>
> There is no need to modify more than one makefile.  Look at how the
> kernel is built, you should be just fine as-is because people use clang
> just fine today.
>
> good luck!
>
> greg k-h
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20181017/24feb974/attachment.html>


More information about the Kernelnewbies mailing list