lkml.org 
[lkml]   [2016]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 18/18] perf clang: Define PERF_BUILTIN_CLANG for builtin clang compiling
    Date
    By this macro BPF script knows what compiler it is being built with.
    Scripts prefer external clang can force fall back to it by:

    #ifdef PERF_BUILTIN_CLANG
    # error I prefer external clang compiler
    #endif

    Signed-off-by: Wang Nan <wangnan0@huawei.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Alexei Starovoitov <ast@fb.com>
    Cc: He Kuang <hekuang@huawei.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    ---
    tools/perf/util/c++/clang.cpp | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/tools/perf/util/c++/clang.cpp b/tools/perf/util/c++/clang.cpp
    index a2de788..dd32f5d 100644
    --- a/tools/perf/util/c++/clang.cpp
    +++ b/tools/perf/util/c++/clang.cpp
    @@ -62,6 +62,7 @@ createCompilerInvocation(llvm::opt::ArgStringList CFlags, StringRef& Path,
    "-vectorize-slp",
    "-Wno-unused-value",
    "-Wno-pointer-sign",
    + "-DPERF_BUILTIN_CLANG=1"
    "-x", "c"};

    CCArgs.append(CFlags.begin(), CFlags.end());
    --
    1.8.3.4
    \
     
     \ /
      Last update: 2016-09-26 09:31    [W:4.170 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site