Skip to content

Conversation

NTULINUX
Copy link

Specifying LLVM=1 to make builds with clang.
This syntax matches the Linux kernel.

Specifying LLVM=1 to `make` builds with clang.
This syntax matches the Linux kernel.

Signed-off-by: Alec Ari <[email protected]>
Copy link
Contributor

@smoe smoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests' failure cannot be triggered by this patch, I am confident. Have looked for instructions by Debian about conventions on how to specify the other compiler (other than setting CC, RM and RANLIB on the command line) but have not found anything. It seems like indeed it is the command line, like

export CXX=clang++
export LD=lld
export AR=llvm-ar
export NM=llvm-nm
export OBJDUMP=llvm-objdump

and if that is confirmed then a script may be more appropriate than a change to the Makefile.

Edit: I only now get the pointer to the Linux kernel. I was focused on Debian. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants