kernel_optimize_test/tools/build
Wang Nan c7fb4f62e2 tools build: Add feature detection for clang
Check if basic clang compiling environment is ready.

Doesn't like 'llvm-config --libs' which can returns llvm libraries in right
order and duplicates some libraries if necessary, there's no correspondence for
clang libraries (-lclangxxx). to avoid extra complexity and to avoid new clang
breaking libraries ordering, use --start-group and --end-group.

In this test case, manually identify required clang libs and hope it to be
stable. Putting all clang libraries here is possible (use make's wildcard), but
then feature checking becomes very slow.

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-9-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-12-05 15:51:43 -03:00
..
Documentation tools build: Add CFLAGS_REMOVE_* support 2016-11-14 11:37:25 -03:00
feature tools build: Add feature detection for clang 2016-12-05 15:51:43 -03:00
tests tools build: Build fixdep helper from perf and basic libs 2015-09-28 15:50:55 -03:00
.gitignore perf build: Add fixdep to .gitignore 2015-10-20 10:43:28 -03:00
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