aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/config/feature-checks/test-libpython.c
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2013-10-04 12:14:59 +0200
committerIngo Molnar <[email protected]>2013-10-09 08:49:02 +0200
commit1f7c645ab4b8326fef5afcd842795e071ecce9df (patch)
tree1f12b0c79c03d7e7803c32f2902a6016b6bf358b /tools/perf/config/feature-checks/test-libpython.c
parentb102420b500da97e0fc18d94f0600bddeced1b99 (diff)
tools/perf/build: Fix O=/some/dir perf.o type of targets
If someone specifies a single target, mixed with O=, the following way: hubble:~/tip/tools/perf> make O=/tmp/perf util/stat.o BUILD: Doing 'make -j8' parallel build gcc -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k [...] The build might even fail, if a target depends on other targets: hubble:~/tip/tools/perf> make O=/tmp/perf perf.o ... perf.c: In function ‘handle_options’: perf.c:155:21: error: ‘PERF_HTML_PATH’ undeclared (first use in this function) The correct way to invoke such targets is: hubble:~/tip/tools/perf> make O=/tmp/perf /tmp/perf/perf.o BUILD: Doing 'make -j8' parallel build GEN /tmp/perf/common-cmds.h CC /tmp/perf/perf.o But that's unnecessary typing and it's also easy to mistakenly build into the source directory. To fix this remove the generic suffix rules and add redirection to $(OUTPUT) for the most popular .o targets. Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/config/feature-checks/test-libpython.c')
0 files changed, 0 insertions, 0 deletions