diff options
author | Wang Nan <[email protected]> | 2016-11-26 07:03:32 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-12-05 15:51:43 -0300 |
commit | c7fb4f62e2a97bd25d555263ef501fe053edcbb6 (patch) | |
tree | 5a376a0071de175056029fe799bc8914526a60d2 /tools/perf/util/c++/clang.cpp | |
parent | cb40d55b595cd117ef7c1880247605875b2115e8 (diff) |
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 <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Joe Stringer <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions