diff options
author | Michael Witten <mfwitten@gmail.com> | 2011-04-12 16:27:59 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-04-19 07:18:36 -0400 |
commit | 7fbd065f5a2b299172502f09fc3fbde02b48f591 (patch) | |
tree | f989584eb661d386875ff134dbdaa934c312d64a /tools/perf/feature-tests.mak | |
parent | ced465c400b23656ef2c4fbfb4add0e5b92e3d97 (diff) |
perf tools: Move `try-cc'
The `try-cc' user-defined function was in tools/perf/feature-tests.mak;
this commit moves it to tools/perf/config/utilities.mak.
Signed-off-by: Michael Witten <mfwitten@gmail.com>
Link: http://lkml.kernel.org/n/tip-bqhwcuxsrve0iodn6q4ejaoi@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/feature-tests.mak')
-rw-r--r-- | tools/perf/feature-tests.mak | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/perf/feature-tests.mak b/tools/perf/feature-tests.mak index 1b3342001e1..6170fd2531b 100644 --- a/tools/perf/feature-tests.mak +++ b/tools/perf/feature-tests.mak | |||
@@ -126,11 +126,3 @@ int main(void) | |||
126 | return 0; | 126 | return 0; |
127 | } | 127 | } |
128 | endef | 128 | endef |
129 | |||
130 | # try-cc | ||
131 | # Usage: option = $(call try-cc, source-to-build, cc-options) | ||
132 | try-cc = $(shell sh -c \ | ||
133 | 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \ | ||
134 | echo "$(1)" | \ | ||
135 | $(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \ | ||
136 | rm -f "$$TMP"') | ||