diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/config/utilities.mak | 8 | ||||
-rw-r--r-- | tools/perf/feature-tests.mak | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/config/utilities.mak b/tools/perf/config/utilities.mak index 6d8ff8878405..8046182a19eb 100644 --- a/tools/perf/config/utilities.mak +++ b/tools/perf/config/utilities.mak | |||
@@ -178,3 +178,11 @@ endef | |||
178 | _ge_attempt = $(or $(get-executable),$(_gea_warn),$(call _gea_err,$(2))) | 178 | _ge_attempt = $(or $(get-executable),$(_gea_warn),$(call _gea_err,$(2))) |
179 | _gea_warn = $(warning The path '$(1)' is not executable.) | 179 | _gea_warn = $(warning The path '$(1)' is not executable.) |
180 | _gea_err = $(if $(1),$(error Please set '$(1)' appropriately)) | 180 | _gea_err = $(if $(1),$(error Please set '$(1)' appropriately)) |
181 | |||
182 | # try-cc | ||
183 | # Usage: option = $(call try-cc, source-to-build, cc-options) | ||
184 | try-cc = $(shell sh -c \ | ||
185 | 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \ | ||
186 | echo "$(1)" | \ | ||
187 | $(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \ | ||
188 | rm -f "$$TMP"') | ||
diff --git a/tools/perf/feature-tests.mak b/tools/perf/feature-tests.mak index 1b3342001e1c..6170fd2531b5 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"') | ||