From c759d926c4e88407feb9d2da9099c50666084339 Mon Sep 17 00:00:00 2001 From: Michael Witten Date: Tue, 12 Apr 2011 20:27:59 +0000 Subject: [PATCH] --- yaml --- r: 245432 b: refs/heads/master c: 7fbd065f5a2b299172502f09fc3fbde02b48f591 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/config/utilities.mak | 8 ++++++++ trunk/tools/perf/feature-tests.mak | 8 -------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index b2a54a40e360..85917cfd0d75 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ced465c400b23656ef2c4fbfb4add0e5b92e3d97 +refs/heads/master: 7fbd065f5a2b299172502f09fc3fbde02b48f591 diff --git a/trunk/tools/perf/config/utilities.mak b/trunk/tools/perf/config/utilities.mak index 6d8ff8878405..8046182a19eb 100644 --- a/trunk/tools/perf/config/utilities.mak +++ b/trunk/tools/perf/config/utilities.mak @@ -178,3 +178,11 @@ endef _ge_attempt = $(or $(get-executable),$(_gea_warn),$(call _gea_err,$(2))) _gea_warn = $(warning The path '$(1)' is not executable.) _gea_err = $(if $(1),$(error Please set '$(1)' appropriately)) + +# try-cc +# Usage: option = $(call try-cc, source-to-build, cc-options) +try-cc = $(shell sh -c \ + 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \ + echo "$(1)" | \ + $(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \ + rm -f "$$TMP"') diff --git a/trunk/tools/perf/feature-tests.mak b/trunk/tools/perf/feature-tests.mak index 1b3342001e1c..6170fd2531b5 100644 --- a/trunk/tools/perf/feature-tests.mak +++ b/trunk/tools/perf/feature-tests.mak @@ -126,11 +126,3 @@ int main(void) return 0; } endef - -# try-cc -# Usage: option = $(call try-cc, source-to-build, cc-options) -try-cc = $(shell sh -c \ - 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \ - echo "$(1)" | \ - $(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \ - rm -f "$$TMP"')