tools build: Support compiling C++ source file
authorWang Nan <wangnan0@huawei.com>
Mon, 26 Sep 2016 07:26:55 +0000 (07:26 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Oct 2016 22:58:51 +0000 (19:58 -0300)
commitf61bdc3304281e9ff9eec4f1ed9fb15bcf4d8a5e
tree039e05791992e7c49ceadfbf52535f4d7ecef481
parent2ad8327fd0013ee07f056d28faddc2e7f01dd127
tools build: Support compiling C++ source file

Add new rule to compile .cpp file to .o use g++. C++ support is required
for built-in clang and LLVM support.

Linker side support will be introduced by following commits.

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: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1474874832-134786-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Build.include
tools/build/Makefile.build