diff options
author | Yonghong Song <yhs@fb.com> | 2021-04-13 18:34:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-19 11:08:22 +0300 |
commit | c262de1777e4f18be471e73deefe39e3a4f9a637 (patch) | |
tree | d9e56205e3f2c75388606f3889bee27e4ea03a8f /init | |
parent | 2b9ad1fd9dd2e63355893aa1e425f820b0e2ce89 (diff) | |
download | linux-c262de1777e4f18be471e73deefe39e3a4f9a637.tar.xz |
selftests: Set CC to clang in lib.mk if LLVM is set
[ Upstream commit 26e6dd1072763cd5696b75994c03982dde952ad9 ]
selftests/bpf/Makefile includes lib.mk. With the following command
make -j60 LLVM=1 LLVM_IAS=1 <=== compile kernel
make -j60 -C tools/testing/selftests/bpf LLVM=1 LLVM_IAS=1 V=1
some files are still compiled with gcc. This patch
fixed lib.mk issue which sets CC to gcc in all cases.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210413153413.3027426-1-yhs@fb.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions