alistair23-linux/tools/build
Wang Nan cb40d55b59 tools build: Add feature detection for LLVM
Check if basic LLVM compiling environment is ready.

Use llvm-config to detect include and library directories. Avoid using
'llvm-config --cxxflags' because its result contain some unwanted flags
like --sysroot (if LLVM is built by yocto).

Use '?=' to set LLVM_CONFIG, so explicitly passing LLVM_CONFIG to make
would override it.

Use 'llvm-config --libs BPF' to check if BPF backend is compiled in.
Since now BPF bytecode is the only required backend, no need to waste
time linking llvm and clang if BPF backend is missing. This also
introduce an implicit requirement that LLVM should be new enough.  Old
LLVM doesn't support BPF backend.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Joe Stringer <joe@ovn.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/20161126070354.141764-8-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-12-05 15:51:42 -03:00
..
Documentation tools build: Add CFLAGS_REMOVE_* support 2016-11-14 11:37:25 -03:00
feature tools build: Add feature detection for LLVM 2016-12-05 15:51:42 -03:00
tests
.gitignore
Build tools build: Make fixdep a hostprog 2016-10-03 11:40:35 -03:00
Build.include tools build: Fix objtool build with clang 2016-12-05 15:51:42 -03:00
fixdep.c tools build: Make fixdep parsing wait for last target 2016-12-05 15:51:42 -03:00
Makefile tools build: Make fixdep a hostprog 2016-10-03 11:40:35 -03:00
Makefile.build tools build: Support compiling C++ source file 2016-10-05 19:58:51 -03:00
Makefile.feature tools build: Add feature detection for g++ 2016-10-05 19:59:35 -03:00
Makefile.include tools build: Make fixdep a hostprog 2016-10-03 11:40:35 -03:00